Voting

: eight minus six?
(Example: nine)

The Note You're Voting On

aschmidt at anamera dot net
1 month ago
Unfortunately, the most "basic" index functionality has been overlooked: indexing the resulting array using the original index -- in other words, simply maintaining the original index and associating that with a chosen column from the array.

Consequently, one has to suffer additional overhead by resorting to some workaround, e.g.:

array_combine( array_keys( $array ), array_column( $array, 'some column' ) );

<< Back to user notes page

To Top