Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

global statement in php

Mon Oct 27, 2008 1:00 pm

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




Post a reply
  Related Posts  to : global statement in php
 Accessing Global Variables with the global Statement     -  
 difference between break statement and a continue statement     -  
 difference between a while statement and a do statement     -  
 how to call a global variable?     -  
 dynamic array as global variables     -  
 Using the for Statement     -  
 PHP if statement and else if     -  
 while Statement in php     -  
 Need help with if statement     -  
 The do...while Statement     -  

Topic Tags

PHP Basics