1. Computing

Discuss in my forum

Unset () PHP Function

By , About.com Guide

Definition: Unset () is used to destroy a variable in PHP. In can be used to remove a single variable, multiple variables, or an element from an array. It is phrased as Unset ($remove).
Also Known As: Unset Variable, Destroy Variable
Examples:
 <?php 
 // remove a single variable 
 unset($a); 
 
 // remove a single element in an array 
 unset($my_array['element']); 
 
 // remove multiple variables 
 unset($a, $b, $c); 
 ?> 
Related Video
Basic PHP Syntax
Using PHP With HTML
Top Related Searches array element unset variables lt
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. PHP Functions
  5. PHP Unset Variable - PHP Unset Function - Unset Variable

©2013 About.com. All rights reserved.