|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-12 13:01 UTC] cynic@php.net
[2002-07-12 13:03 UTC] cynic@php.net
[2002-07-12 13:09 UTC] cirello at estadao dot com dot br
[2002-07-12 13:40 UTC] cynic@php.net
[2002-07-12 14:11 UTC] cirello at estadao dot com dot br
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 08:00:02 2025 UTC |
/* Two arrays do diff */ $array_one = Array(1,2,3); $array_two = Array(1,2); /* Bugged behaviour*/ while( list(,$value) = @each(array_diff($array_one, $array_two)) ) echo $value."\n"; /* But this while loop never ends ... If the array_diff returns just one value , why is it never ending?*/ /* WorkAround */ $array_diffed = array_diff($array_one, $array_two); while( list(,$value) = @each($array_diffed) ) echo $value."\n";