note 111555 deleted from function.end by danbrown

From: Date: Mon, 04 Mar 2013 17:39:30 +0000
Subject: note 111555 deleted from function.end by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193798@lists.php.net to get a copy of this message
Note Submitter: Malko ---- <?php // regarding "Tim C" comment doing $lastkey = array_pop(array_keys($arr)); // this is effectively an easy way but not a correct one at all regarding performance, a correct way would be more to do something like that: end($arr); $lastKey = key($arr);

« previous php.notes (#193798) next »