[Solved] Php and PDO – fetching data
The $data array contains multiple associative arrays (one for each record returned). If you want just the values for high for each record in one array and just the values for low in another the result set, you could do: <?php $high = array_column($data, ‘high’); $low = array_column($data, ‘low’); ?> 1 solved Php and PDO … Read more