Please don't reply directly unless you intend to pay me for my time. 2009/8/25 Ralph Deffke <[email protected]>: > sorry but its about the top topic it say it never does an error if u dont > give an argument
I accept that your English is not great, but given that you should be a bit more careful. The OP said "is it the case that unset() does not trigger an error or throw an exception if it's argument was never set?". That does not say "if you don't give an argument". Not even close. -Stuart -- http://stut.net/ > ________________________________ > Von: Stuart <[email protected]> > An: Ralph Deffke <[email protected]> > CC: [email protected] > Gesendet: Dienstag, den 25. August 2009, 14:51:09 Uhr > Betreff: Re: [PHP] Re: unset() something that doesn't exist > > 2009/8/25 Ralph Deffke <[email protected]>: >> <?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 > > Seriously? What part of "expecting something" confuses you? While it > is true that it's a language construct and not a function that doesn't > mean it's intelligent enough to figure out what you want it to do - > you still have to tell it!! > > I mean, come on!! > > -Stuart > > -- > http://stut.net/ > >> "Stuart" <[email protected]> wrote in message >> news:[email protected]... >>> 2009/8/25 Ralph Deffke <[email protected]>: >>> > 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" <[email protected]> wrote in message >>> > news:[email protected]... >>> >> 2009/8/25 Ralph Deffke <[email protected]>: >>> >> > 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" <[email protected]> wrote in message >>> >> > news:c6b87877.11463%[email protected]... >>> >> >> 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 >>> > >>> > >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

