Unset a column in a multidimensional array
Solution 1:
Can't be done with a simple command, but you can use a loop:
foreach(array_keys($output) as $key) {
unset($output[$key][1]);
}
Solution 2:
You can iterate over the array, and unset()
what you want in each sub-array:
foreach($output as &$item) {
unset($item[2]);
}
unset($item); // unset reference