PHP 8.3.21 Released!

Voting

: max(four, five)?
(Example: nine)

The Note You're Voting On

paule at cs dot tamu dot edu
22 years ago
to [email protected]:

Good point about the code not doing what you expected.

The failure to check for the insert case like you pointed out is not a bug, however. I didn't add code to handle that because the key of such an added index is more or less undefined in an unordered associative array. Put another way, if your array is associative and not auto-indexed, you most likely care enough about your keys to want to set them explicitly.

<< Back to user notes page

To Top