Im having trouble getting a function within a function working, do you think what I have below is done rigth? Im not getting the expected results, if you could shed some light on functions within functions i would appriciete it.
thanks
function test1 ()
{
global x;
$x=123;
function test2()
{
echo $x;
}
test2();
}