Samoht: global in verschachtelten Funktionen

Beitrag lesen

function x1()
{

hier ein global $b sollte helfen

$b = 2;
  function x11()
  {
    global $a, $b;
    $c = 3;
    echo "a=[".$a."] b=[".$b."] c=[".$c."]<br>\n";
  }

Gruß, Samoht

--
fl:| br:> va:) ls:< n4:( ss:) de:] js:| mo:}
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."
(Kristian Wilson, Nintendo, 1989)