note 42206 rejected from function.array-unique by betz
| From: | betz@php.net | Date: | Fri, 07 May 2004 20:08:57 +0000 |
| Subject: | note 42206 rejected from function.array-unique by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69327@lists.php.net to get a copy of this message | ||
Note Submitter: naltang@yahoo.com
----
Note that the following code does not act as you expect.
<?
$array_org = array_uniq ($array_org);
?>
This should be rewritten as
<?
$array_temp = array_uniq ($array_org);
$array_org = $array_temp;
?>