Huh? The situation is the same, a single typo (too when it should have been foo), such as: $value = (isset($_GET['too'])) ? $_GET['foo'] : null; or: $value = @$_GET['too'];
has exactly the same effect. There is no warning message that you made the typo, and $value is always null. -Craig > If a value is not supplied you get an error that is very easy > to debug (if you get an error that $_GET["foo"] doesn't exist, but you > see the isset statement, you immediately know the problem). --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
