|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-26 02:08 UTC] jerebenz at gmail dot com
[2006-05-26 02:42 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 22:00:01 2025 UTC |
Description: ------------ Hi, The problem occur the pointer of an array is at the start and I do a prev(). If I try to do current() after that, I see nothing, and if I try next() and current() again, still nothing. Bye Reproduce code: --------------- <?php $tab = array('4', '6'); echo current($tab); prev($tab); echo current($tab); next($tab); echo current($tab); ?> Expected result: ---------------- 446 Actual result: -------------- 4