unset

unset -- Unset a given variable

Description

int unset(mixed var);

unset() destroys the specified variable and returns true.

Example 1. unset() example

  1 
  2 unset ($foo);
  3 unset ($bar['quux']);
  4       

See also isset() and empty().