Cast to unset - PHP
This is a discussion on Cast to unset - PHP ; 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 ...
-
Cast to unset
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?
Thanks,
Robert
-
Re: [PHP] Cast to unset
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?