note 116607 added to function.array-diff

From: Date: Wed, 28 Jan 2015 16:00:02 +0000
Subject: note 116607 added to function.array-diff
Groups: php.notes 
Request: Send a blank email to php-notes+get-201545@lists.php.net to get a copy of this message
If you're not getting a count(array_diff($a1,$a2))>0 with something similar to the following arrays should use the php.net/array_diff_assoc function instead. $a1 = Array ( [0] => id [1] => id_1 [2] => id_2 ) $a2 = Array ( [0] => id [1] => id_2 [2] => id_1 ) ---- Server IP: 72.52.91.14 Probable Submitter: 104.156.240.164 ---- Manual Page -- http://php.net/manual/en/function.array-diff.php Edit -- https://master.php.net/note/edit/116607 Del: integrated -- https://master.php.net/note/delete/116607/integrated Del: useless -- https://master.php.net/note/delete/116607/useless Del: bad code -- https://master.php.net/note/delete/116607/bad+code Del: spam -- https://master.php.net/note/delete/116607/spam Del: non-english -- https://master.php.net/note/delete/116607/non-english Del: in docs -- https://master.php.net/note/delete/116607/in+docs Del: other reasons-- https://master.php.net/note/delete/116607 Reject -- https://master.php.net/note/reject/116607 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201545) next »