note 74963 added to function.end

From: Date: Sun, 06 May 2007 18:40:32 +0000
Subject: note 74963 added to function.end
Groups: php.notes 
Request: Send a blank email to php-notes+get-126255@lists.php.net to get a copy of this message
Posted by johnny at west dot net 03-Nov-2006 06:45 >> An easier way to get the last key: >> $lastkey = end(array_keys($arr)); As stated in a previous note, this may not function as expected (or at all) as end() takes the parameter by reference and you cannot pass a function call by reference. ---- Server IP: 69.147.83.197 Probable Submitter: 65.100.198.107 ---- Manual Page -- http://www.php.net/manual/en/function.end.php Edit -- https://master.php.net/note/edit/74963 Del: integrated -- https://master.php.net/note/delete/74963/integrated Del: useless -- https://master.php.net/note/delete/74963/useless Del: bad code -- https://master.php.net/note/delete/74963/bad+code Del: spam -- https://master.php.net/note/delete/74963/spam Del: non-english -- https://master.php.net/note/delete/74963/non-english Del: in docs -- https://master.php.net/note/delete/74963/in+docs Del: other reasons-- https://master.php.net/note/delete/74963 Reject -- https://master.php.net/note/reject/74963 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126255) next »