note 113561 added to function.current
| From: | strate at yandex dot com | Date: | Wed, 30 Oct 2013 07:11:30 +0000 |
| Subject: | note 113561 added to function.current | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197344@lists.php.net to get a copy of this message | ||
Note, that you can pass array by expression, not only by reference (as described in doc).
<?php
var_dump( current( array(1,2,3) ) ); // (int) 1
?>
----
Server IP: 192.41.45.150
Probable Submitter: 86.62.69.82
----
Manual Page -- http://php.net/manual/en/function.current.php
Edit -- https://master.php.net/note/edit/113561
Del: integrated -- https://master.php.net/note/delete/113561/integrated
Del: useless -- https://master.php.net/note/delete/113561/useless
Del: bad code -- https://master.php.net/note/delete/113561/bad+code
Del: spam -- https://master.php.net/note/delete/113561/spam
Del: non-english -- https://master.php.net/note/delete/113561/non-english
Del: in docs -- https://master.php.net/note/delete/113561/in+docs
Del: other reasons-- https://master.php.net/note/delete/113561
Reject -- https://master.php.net/note/reject/113561
Search -- https://master.php.net/manage/user-notes.php