note 102857 added to function.end

From: Date: Thu, 10 Mar 2011 14:18:44 +0000
Subject: note 102857 added to function.end
Groups: php.notes 
Request: Send a blank email to php-notes+get-177739@lists.php.net to get a copy of this message
To correct Tim C's post, where if used in a loop the erroneous exponential processing could unnecessarily warm the planet! The more correct efficient way to get the index of a newly added item is to do: end($a); $key = key($a); ---- Server IP: 92.48.74.199 Probable Submitter: 79.135.106.49 ---- Manual Page -- http://www.php.net/manual/en/function.end.php Edit -- https://master.php.net/note/edit/102857 Del: integrated -- https://master.php.net/note/delete/102857/integrated Del: useless -- https://master.php.net/note/delete/102857/useless Del: bad code -- https://master.php.net/note/delete/102857/bad+code Del: spam -- https://master.php.net/note/delete/102857/spam Del: non-english -- https://master.php.net/note/delete/102857/non-english Del: in docs -- https://master.php.net/note/delete/102857/in+docs Del: other reasons-- https://master.php.net/note/delete/102857 Reject -- https://master.php.net/note/reject/102857 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177739) next »