Hi there,

I'm proposing a function called array_last_key(), that takes a
reference to an array, and returns the key of its last item. This is
useful for finding out the key of the last item pushed to an array.
Here's the pull request: https://github.com/php/php-src/pull/131

This is the first PHP extension function, and PHP test I've written.

-- 
Andrew Faulds (AJF)
http://ajf.me/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to