note 42206 added to function.array-unique
| From: | naltang at yahoo dot com | Date: | Fri, 07 May 2004 19:22:36 +0000 |
| Subject: | note 42206 added to function.array-unique | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69324@lists.php.net to get a copy of this message | ||
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;
?>
----
Manual Page -- http://www.php.net/manual/en/function.array-unique.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42206
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42206&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42206&report=yes
Search -- http://master.php.net/manage/user-notes.php