Voting

: max(one, one)?
(Example: nine)

The Note You're Voting On

balbuf
6 years ago
This function does not preserve the original keys of the array (when not providing an index_key).

You can work around that like so:

<?php
// instead of
array_column($array, 'column');

// to preserve keys
array_combine(array_keys($array), array_column($array, 'column'));
?>

<< Back to user notes page

To Top