|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-18 09:48 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
Description: ------------ As this script shows, the array_diff function doesn't give the expected result on a php4.2.3 : Reproduce code: --------------- <? $today_list = array("pic_0710.jpg","pic_0740.jpg"); $yesterday_list = array("pic_0710.jpg","pic_0740.jpg","pic_0910.jpg"); $result = array_diff($today_list,$yesterday_list); var_dump($result); ?> Expected result: ---------------- array(1) { [0]=> string(12) "pic_0910.jpg" } Actual result: -------------- array(0) { }