note 13926 deleted from function.array-unique by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: az at top-webdesign dot de 

----

@lefeuvrenicolas 

Use the above mentioned combination with "array_values" - then it works.

So do it like this:
--------------------
<?php
$truc = array("l810u00","l810u00","l810q00"); 
$machin = array_values(array_unique($truc)); 
for($i=0;$i < count($machin) ; $i++){ 
echo $machin[$i]."\n"; 
}
?>
--------------------

But it is strange anyway ...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.