Scope of a Variable : Variable Scope : Language Basics PHP Source Code


PHP Source Code » Language Basics » Variable Scope »

 

Scope of a Variable




<?php

  $a = "asdf";

  function music (){
      $a = "Music is great";
  }
  print $a;
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Variable Scope