"; echo $x; echo "
"; echo $y; ?>
Variable x inside function is: $x"; } myTest(); echo " Variable x outside function is: $x
"; ?>
Variable x inside function is: $x"; } myTest(); // using x outside the function will generate an error echo " Variable x outside function is: $x
"; ?>
"; myTest(); echo "
"; myTest(); ?>