note 97285 added to function.array-unique

From: Date: Mon, 12 Apr 2010 15:11:23 +0000
Subject: note 97285 added to function.array-unique
Groups: php.notes 
Request: Send a blank email to php-notes+get-168161@lists.php.net to get a copy of this message
recursive array unique for multiarrays <?php function super_unique($array) { $result = array_map("unserialize", array_unique(array_map("serialize", $array))); foreach ($result as $key => $value) { if ( is_array($value) ) { $result[$key] = super_unique($value); } } return $result; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 213.234.31.127 ---- Manual Page -- http://www.php.net/manual/en/function.array-unique.php Edit -- https://master.php.net/note/edit/97285 Del: integrated -- https://master.php.net/note/delete/97285/integrated Del: useless -- https://master.php.net/note/delete/97285/useless Del: bad code -- https://master.php.net/note/delete/97285/bad+code Del: spam -- https://master.php.net/note/delete/97285/spam Del: non-english -- https://master.php.net/note/delete/97285/non-english Del: in docs -- https://master.php.net/note/delete/97285/in+docs Del: other reasons-- https://master.php.net/note/delete/97285 Reject -- https://master.php.net/note/reject/97285 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168161) next »