Show Output
Using PHP Function Variable Outside
$greet inside function is: ' . $greet . ''; } test(); // Generate undefined variable error echo '
$greet outside of function is: ' . $greet . '
'; ?>