Source Code:
(back to article)
<?php $var1 = "hello"; $var2 = 42; function testFunction() { $var3 = true; $all_vars = get_defined_vars(); print_r($all_vars); } testFunction(); ?>
Result:
Report an issue