PHP

Function Scope

<?php
   function foo() {
      $bar = "wombat";
   }

   $bar = "baz";
   foo();
   print $bar;
?>

José M. Vidal .

11 of 33