Date: 08/16/01
- Next message: Jon Parise: "Re: [PHP-DEV] [[PHP-DEV] <script type="..."> support (fwd)]"
- Previous message: Chris Gardner: "Re: [PHP-DEV] [[PHP-DEV] <script type="..."> support (fwd)]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
is it correct that the following code
(PHP 4.0.6)
---snip---
$a[1]=array(1,2);
$a[2]=array(2,4);
$b=array_unique($a);
print_r($b);
---snap---
output this?:
---
Array
(
[1] => Array
(
[0] => 1
[1] => 2
)
)
---
instead of:
---
Array
(
[1] => Array
(
[0] => 1
[1] => 2
)
[2] => Array
(
[0] => 2
[1] => 4
)
)
---
Both entries are not unique and in the documention nobody
write that this case is not allowed.
Regards,
--
Holger
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Jon Parise: "Re: [PHP-DEV] [[PHP-DEV] <script type="..."> support (fwd)]"
- Previous message: Chris Gardner: "Re: [PHP-DEV] [[PHP-DEV] <script type="..."> support (fwd)]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

