note 13915 added to function.array-unique.php
| From: | lefeuvrenicolas at hotmail dot com | Date: | Tue, 10 Jul 2001 08:09:33 +0000 |
| Subject: | note 13915 added to function.array-unique.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15155@lists.php.net to get a copy of this message | ||
about array_unique :
<?
$truc = array("l810u00","l810u00","l810q00");
$machin = array_unique($truc);
for($i=0;$i < count($machin) ; $i++){
print $machin[$i]."<br>";
}
?>
result :
l810u00
so why this problem with array_unique() and how can I resolve it ?
thank you for your answer.
http://www.php.net/manual/en/function.array-unique.php