Mega Code Archive

 
Categories / Php / Language Basics
 

More Working with Variable Scope

<?php     function getglobal() {         global $my_global;         echo "The value of \$foobar is '$foobar'<BR>";     }     $my_global = 20;     getglobal(); ?>