> On Thu, 18 Jan 2001, Brandon Orther wrote:
>
> > Hello,
> >
> > How can I clear a variable?
> >
> > Thank you,
> >
> > --------------------------------------------
> > Brandon Orther
> > WebIntellects Design/Development Manager
> > [EMAIL PROTECTED]
> > 800-994-6364
> > www.webintellects.com
> > --------------------------------------------
> >
>
> unset($var);
>
Actually, just to clarify, that removes a variable from the symbol table.
to clear the contents of a variable, just set it to null:
$var = NULL;
// $var is now empty
-sterling
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]