Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 10
    that's the worst piece of advice one could give Commented Jul 16, 2009 at 11:40
  • In this case it's ok because there's a check just after. Commented Jul 16, 2009 at 11:41
  • using @ error supressor is quite a stinky code smell, read about code smells on SO Commented Jul 16, 2009 at 11:42
  • 3
    @ IS OK for some contexts, in conscious use. It is NOT A DEPRECATED operator. The main typical use is with $_POST and $_GET, like '<input name="x" value="<?= $_POST['x']?>"/>'. The FWH suggestion is good: initialize $contry with '' or with a value, there are NO SIDE EFFECT! Commented Sep 25, 2011 at 15:04