Undefined PHP variables and other errors

  • 2020-03-31 21:26:57
  • OfStack

Set the error level in the project to :error_reporting(E_ALL | E_STRICT);

Undefined array variables can also report errors, which is fine, but sometimes you really don't need to report this error. PHP's solution is:

@ $_GET [' unkown];

This will allow you to place the error message.

Related articles: