note 97282 added to function.array-intersect

From: Date: Mon, 12 Apr 2010 11:36:05 +0000
Subject: note 97282 added to function.array-intersect
Groups: php.notes 
Request: Send a blank email to php-notes+get-168150@lists.php.net to get a copy of this message
I used array_intersect in order to sort an array arbitrarly: $a = array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'height', 'nine', 'ten'); $b = array('four', 'one', 'height', 'five') var_dump(array_intersect($a, $b); will output: 0 => 'one' 1 => 'four' 2 => 'five' 3 => 'height' i hope this can help... ---- Server IP: 89.31.146.176 Probable Submitter: 80.14.234.230 ---- Manual Page -- http://www.php.net/manual/en/function.array-intersect.php Edit -- https://master.php.net/note/edit/97282 Del: integrated -- https://master.php.net/note/delete/97282/integrated Del: useless -- https://master.php.net/note/delete/97282/useless Del: bad code -- https://master.php.net/note/delete/97282/bad+code Del: spam -- https://master.php.net/note/delete/97282/spam Del: non-english -- https://master.php.net/note/delete/97282/non-english Del: in docs -- https://master.php.net/note/delete/97282/in+docs Del: other reasons-- https://master.php.net/note/delete/97282 Reject -- https://master.php.net/note/reject/97282 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168150) next »