On Sep 16, 1:02 pm, "Nathan Kennedy" <[email protected]>
wrote:
> $value = array_key_exists('retry',$_GET)?$_GET['retry']:null;

A much simpler solution is to use @:

$value = @$_GET['retry'];

Which produces exactly the same result as above, but suppresses all
warning/notice messages.  The code is a lot cleaner, but it won't warn
you if $_GET is undefined.

-Craig
--~--~---------~--~----~------------~-------~--~----~
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