note 64439 added to function.current

From: Date: Fri, 14 Apr 2006 12:45:11 +0000
Subject: note 64439 added to function.current
Groups: php.notes 
Request: Send a blank email to php-notes+get-108060@lists.php.net to get a copy of this message
The name of the function 'current()' isn't very intuitive, so I made a helper function called 'value()' that works the same way as 'key()'. <?php function value(&$array) { return current($array); } ?> ---- Server IP: 216.194.113.175 Probable Submitter: 65.100.194.45 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.current.php Edit -- http://master.php.net/note/edit/64439 Del: integrated -- http://master.php.net/note/delete/64439/integrated Del: useless -- http://master.php.net/note/delete/64439/useless Del: bad code -- http://master.php.net/note/delete/64439/bad+code Del: spam -- http://master.php.net/note/delete/64439/spam Del: non-english -- http://master.php.net/note/delete/64439/non-english Del: in docs -- http://master.php.net/note/delete/64439/in+docs Del: other reasons-- http://master.php.net/note/delete/64439 Reject -- http://master.php.net/note/reject/64439 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108060) next »