Re: Cast to unset
| From: | Richard Lynch | Date: | Tue, 27 Feb 2007 21:09:12 +0000 |
| Subject: | Re: Cast to unset | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249516@lists.php.net to get a copy of this message | ||
On Tue, February 27, 2007 3:36 am, Robert Enyedi wrote:
> In the PHP grammar I encountered the feature of casting to unset, e.g.
> (unset)$a. I did not manage to find any specific documentation on
> this,
> only people wandering what it might do
> (http://blog.thinkphp.de/archives/33-Casted-fun..html).
>
> So what exactly does cast to unset do?
If it ain't a Documented Feature, don't use it. :-)
I presume it's the same as unset($a); though.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?