note 60027 deleted from function.array-unique by nlopess
| From: | nlopess@php.net | Date: | Fri, 23 Dec 2005 18:52:25 +0000 |
| Subject: | note 60027 deleted from function.array-unique by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100627@lists.php.net to get a copy of this message | ||
Note Submitter: justin at biznaturally dot org
Reason: useless
----
PHP Version 4.0.6
System Windows NT 5.1 build 2600
Build Date Jun 22 2001
//---------DOES NOT OUTPUT PROPER ARRAY----------
$A = array_unique($A);
//-------------------------------------------------------------
//--------CUSTOM BUGFIX---------
$A = explode(":", implode(":", array_unique(A)));
//------------------------------------
I noticed a middle key and the last key of the output array being NULL, I was using a simple implode
statement to verify the array had the keys. echo implode("", $A);
Not sure about this one, but if you have trouble with this function give my fix a little try. Hope
it helps.