|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-05-06 18:04 UTC] mfischer@php.net
[2002-05-06 18:07 UTC] mfischer@php.net
[2003-02-25 01:56 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 08:00:01 2025 UTC |
this is ok <? $a=&$b; $a=5; echo($b); ?> but when I declare these variables as globals in a function it doesn't work <? function foo() { global $a, $b; $a=&$b; } foo(); $a=5; echo($b); ?> It is probably allright. I didn't find anything about this problem.