Re: [PHP-DEV] array_merge php4 cvs From: Andrei Zmievski (andrei <email protected>)
Date: 01/07/00

At 12:30 AM 1/8/00 +0100, Stefano Bagnara wrote:
>suppose i have a global GET variable called gg with value 2;
>
>$a = array();
>$a = array_merge($a,$GLOBALS['HTTP_GET_VARS']);
>print($GLOBALS['gg']);
>$a['gg'] = 3;
>print($GLOBALS['gg']);
>
>the first print return 2.. the second return 3.. instead of 2.

I don't see any problem here. Every variable in $HTTP_GET_VARS is a
reference so it gets merged into the destination array as a reference.

-Andrei

-- 
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>