Hi,
I want to know how to use only certain values of an array in a function like array_values.
The array contains over 180 values, but I only need to display six. It’s for a project where I’m exporting an SQL query to Excel. Here’s some code to give you all some context.
[php]
$result = odbc_exec($conn, $query);
$row = odbc_fetch_array($result);
array_values($row); // I’ve tried array_values($row[‘example’]) and array_values($row, ‘example’)
// There is obviously much more to the code, but I thought I’d only show the area where I’m having a problem
[/php]