Date: 01/07/00
- Next message: justin: "[PHP-DEV] php source"
- Previous message: Absm: "[PHP-DEV] Unable to upload images into Mysql using Php3 ?"
- In reply to: Stefano Bagnara: "Re: [PHP-DEV] array_merge php4 cvs"
- Next in thread: Lars Torben Wilson: "Re: [PHP-DEV] Manual stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: justin: "[PHP-DEV] php source"
- Previous message: Absm: "[PHP-DEV] Unable to upload images into Mysql using Php3 ?"
- In reply to: Stefano Bagnara: "Re: [PHP-DEV] array_merge php4 cvs"
- Next in thread: Lars Torben Wilson: "Re: [PHP-DEV] Manual stuff"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

