Re: unset() something that doesn't exist
| From: | Shawn McKenzie | Date: | Tue, 25 Aug 2009 03:36:34 +0000 |
| Subject: | Re: unset() something that doesn't exist | ||
| References: | 1 2 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-297163@lists.php.net to get a copy of this message | ||
Ralph Deffke wrote:
> causes an error
> Parse error: parse error, expecting
T_STRING' or
> T_VARIABLE' or `'$'' in
> C:\wamp\www\TinyCreator\testCrapp6.php on line 42
>
> "Tom Worster" <fsb@thefsb.org> wrote in message
> news:C6B87877.11463%fsb@thefsb.org...
>> is it the case that unset() does not trigger an error or throw an
> exception
>> if it's argument was never set?
>>
>>
>
>
What!?!?
No, It does not cause an error, not even a notice.
--
Thanks!
-Shawn
http://www.spidean.com