note 67976 added to function.array-diff

From: Date: Fri, 07 Jul 2006 23:57:57 +0000
Subject: note 67976 added to function.array-diff
Groups: php.notes 
Request: Send a blank email to php-notes+get-114587@lists.php.net to get a copy of this message
One common caveat of this function is that if the arrays match, an empty array is return, not a strict boolean. E.g.: <?php $array1 = $array2 = array('a','b','c'); var_dump(array_diff($array1,$array2)); /* *Returns: * array(0) { * } */ ?> ---- Server IP: 85.116.0.130 Probable Submitter: 62.253.96.40 (proxied: 82.3.222.231) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array-diff.php Edit -- http://master.php.net/note/edit/67976 Del: integrated -- http://master.php.net/note/delete/67976/integrated Del: useless -- http://master.php.net/note/delete/67976/useless Del: bad code -- http://master.php.net/note/delete/67976/bad+code Del: spam -- http://master.php.net/note/delete/67976/spam Del: non-english -- http://master.php.net/note/delete/67976/non-english Del: in docs -- http://master.php.net/note/delete/67976/in+docs Del: other reasons-- http://master.php.net/note/delete/67976 Reject -- http://master.php.net/note/reject/67976 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114587) next »