> same way as having the same typo when using symphony

and when using symfony :P

On Thu, Sep 17, 2009 at 8:43 AM, craiganz <[email protected]> wrote:
>
> Hi.
>> No it's not the same effect. The second line hides the typo, the first
>> exposes the error when $_GET['foo'] is not set.
>
> 'too'' is a typo, it's highly unlikely that it would just happen to be
> another element that did exist.  There's no notice about 'foo' because
> that part of the expression won't ever be evaluated (guaranteed).  And
> so the construct is silent in exactly the same way that using @ is and
> it returns exactly the same result.  It's also silent in exactly the
> same way as having the same typo when using symphony and exactly the
> same way as using your own function.
>
> -Craig
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to