note 63819 added to function.array-unique

From: Date: Fri, 31 Mar 2006 20:41:43 +0000
Subject: note 63819 added to function.array-unique
Groups: php.notes 
Request: Send a blank email to php-notes+get-107100@lists.php.net to get a copy of this message
This is a script for multi_dimensional arrays function remove_dup($matriz) { $aux_ini=array(); $entrega=array(); for($n=0;$n<count($matriz);$n++) { $aux_ini[]=serialize($matriz[$n]); } $mat=array_unique($aux_ini); for($n=0;$n<count($matriz);$n++) { $entrega[]=unserialize($mat[$n]); } return $entrega; } ---- Server IP: 66.163.161.117 Probable Submitter: 200.71.37.45 (proxied: 10.0.1.33, 200.71.37.45) ---- 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-unique.php Edit -- http://master.php.net/note/edit/63819 Del: integrated -- http://master.php.net/note/delete/63819/integrated Del: useless -- http://master.php.net/note/delete/63819/useless Del: bad code -- http://master.php.net/note/delete/63819/bad+code Del: spam -- http://master.php.net/note/delete/63819/spam Del: non-english -- http://master.php.net/note/delete/63819/non-english Del: in docs -- http://master.php.net/note/delete/63819/in+docs Del: other reasons-- http://master.php.net/note/delete/63819 Reject -- http://master.php.net/note/reject/63819 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107100) next »