PHP/Data Structure/reset — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 10:02, 26 мая 2010
reset() rewinds the internal pointer of the array back to the first element.
<source lang="html4strict">
Its syntax: mixed reset (array array) <?
$spices = array("A", "B", "C", "D", "E"); reset($spices); $a_spice = each($spices); print_r($a_spice[1]); print_r($a_spice["value"]);
?>
</source>