|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-28 23:42 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
Description: ------------ subj Reproduce code: --------------- <?php $arr = array (1,2,3,4,5); function foo($data){ $total_row = count($data); @reset($data); $row = 1; while ($tmp = current($data)) { if ($row>$total_row){ die("To many iteration"); } print_r($tmp); $row++; next($data); } } foo($arr);