note 64545 deleted from function.end by nlopess
| From: | nlopess@php.net | Date: | Tue, 18 Apr 2006 11:22:55 +0000 |
| Subject: | note 64545 deleted from function.end by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108400@lists.php.net to get a copy of this message | ||
Note Submitter: egingell at sisna dot com
----
There doesn't seem to be a function that will go to the beginning of an array and return the
value, so I made one.
<?php
/**
* mixed start (array &array )
*
* Move the internal pointer of an array to the beginning and return the value.
**/
function start(&$array) {
reset($array);
return current($array);
}
?>