Re: Re: unset() something that doesn't exist
| From: | Ralph Deffke | Date: | Tue, 25 Aug 2009 12:06:58 +0000 |
| Subject: | Re: Re: unset() something that doesn't exist | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297185@lists.php.net to get a copy of this message | ||
<?php
$a = "bhsdhjk";
unset();
?>
Parse error: parse error, expecting
T_STRING' or T_VARIABLE' or
`'$'' in
C:\wamp\www\TinyCreator\testCrapp8.php on line 5
"the function! doen't exist its a language construct
http://us.php.net/manual/en/function.unset.php
"Stuart" <stuttle@gmail.com> wrote in message
news:a5f019de0908250344y17c96d5eqc5cedd944e1f701c@mail.gmail.com...
> 2009/8/25 Ralph Deffke <ralph_deffke@yahoo.de>:
> > of course its a syntax error, because unset() IS NOT A FUNCTION its a
> > language construct
>
> FFS, stop talking out of your rear end and post line 42 of
> testCrapp6.php. Or not, your choice.
>
> -Stuart
>
> --
> http://stut.net/
>
> > "Stuart" <stuttle@gmail.com> wrote in message
> >
> > news:a5f019de0908250201g14e4b61cn73c6cd67da6f669@mail.gmail.com...
> >> 2009/8/25 Ralph Deffke <ralph_deffke@yahoo.de>:
> >> > causes an error
> >> > Parse error: parse error, expecting T_STRING' or
> >> > T_VARIABLE' or
`'$''
> > in
> >> > C:\wamp\www\TinyCreator\testCrapp6.php on line 42
> >>
> >> This is a syntax error, not a runtime error. You've clearly done
> >> something wrong.
> >>
> >> > "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?
> >>
> >> Absolutely.
> >>
> >> -Stuart
> >>
> >> --
> >> http://stut.net/
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >