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.

Required fields*

4
  • If using E_NOTICE from the php.ini configuration file, do error_reporting = (E_ALL & ~E_NOTICE) Commented Oct 4, 2014 at 5:39
  • 1
    This answer is being discussed on meta. Commented Jun 25, 2018 at 10:43
  • From the above answer, I have tried isset, array_key_exists but those didn't work. I tried your answer, .empty(), and it works. Thank you very much! Commented Apr 24, 2020 at 20:53
  • Thank you so much . I have add "error_reporting(E_ALL ^ E_NOTICE); " this is working to me . Commented Jul 2, 2022 at 4:48