Hallo, Samoht,
function x1()
{hier ein global $b sollte helfen
$b = 2;
danke dir. So funzt das Beispiel. Eine noch unbekannte Variable als global zu deklarieren, darauf muss man erstmal kommen:
<?PHP
$a = 1;
function x1()
{
global $b;
$b = 2;
function x11()
{
global $a, $b;
$c = 3;
echo "a=[".$a."] b=[".$b."] c=[".$c."]<br>\n";
}
x11();
}
x1();
?>
Kalle