|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-24 13:50 UTC] derick@php.net
[2002-07-24 14:04 UTC] mikeboulet at newfangled dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
It is expected that the $msgs array passed back out of the test() function call would have a pointer pointing to the first item. I confirmed that this works correctly under PHP 4.0.6. It doesn't work under 4.2.1 either. Notice the output of the print_r() // TEST SCRIPT $newmsgs = test(); print_r( current( $newmsgs )); function test() { $msgs[][a] = 10; $msgs[][b] = 20; $msgs[][c] = 30; $msgs[][d] = 40; $msgs[][e] = 50; while( list( $idx, $msg ) = each( $msgs ) ) { } return $msgs; }