the global statement is used : Global : Language Basics PHP Source Code


PHP Source Code » Language Basics » Global »

 

the global statement is used




<?php
  $ilike = "Rock";
  function music (){
      global $ilike;
      echo "I love listening to $ilike music!""n";
  }
  music ();
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Global