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

Unset variable

Mon Oct 27, 2008 6:09 pm

Code:

<?
   $a
="Hello there!";

   echo
$a

   
unset($a);

   echo
$a; // Error: there is no variable $a
?>




Post a reply
  Related Posts  to : Unset variable
 different between Local variable and Global variable     -  
 UnSet array element     -  
 unset reference variables     -  
 PHP variable in javascript     -  
 Variable interpolation     -  
 transient variable     -  
 Variable Size Arrays     -  
 Testing the Type of a Variable     -  
 Passing a Reference Variable     -  
 how to call a global variable?     -  

Topic Tags

PHP Arrays, PHP Functions