Is there any way to get the key of an element added to an array with []?
I need to use this for a reference to it. The only idea I can think of
is to foreach through the array and use the last key looped through, but
that seems very dirty.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] Re: Getting key of value added to array with []? Leif K-Brooks
- [PHP] Re: Getting key of value added to array with... Goetz Lohmann
- Re: [PHP] Getting key of value added to array with... 1LT John W. Holmes
- Re: [PHP] Getting key of value added to array with... Adam Voigt