alecks Posted December 16, 2007 Share Posted December 16, 2007 Having this problem, could someone offer a way to do this please The situation: function test1(){ global $b; echo $b; } function test(){ $b = "foo"; test1(); } test(); // nadda thanks Quote Link to comment Share on other sites More sharing options...
rab Posted December 16, 2007 Share Posted December 16, 2007 function test1($b='Nothing?'){ echo $b; } function test(){ $b = "foo"; test1($b); } test(); Or function test1(){ global $b; echo $b; } function test(){ global $b; $b = "foo"; test1(); } test(); // nadda Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.