On Sat, 5 Apr 2003 13:18:08 +0300, you wrote:

>David, thank you very much. I suspected smth. like this, but still, it is
>weird: PHP already has the "&" operator (?) for assigning by reference.

The reference operator

$b = &$a;

forces $b and $a to be references to the same variable now and forever,
but the assignment operator

$b = $a;

may make $b and $a reference the same variable, but will make deep
copies of them when their values diverge.

At least that is my understanding.

>And
>there is more: I noticed that if I use the "sort" function instead of
>"array_multisort", it works as expected.
>I still think there is a bug involved :(

Well... I hesitate to call it a bug because each function is working as
intended by its author. Idiosyncratic language design, maybe :)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to