Home > Backend Development > PHP Tutorial > Solutions to php undefined variables and other errors

Solutions to php undefined variables and other errors

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 08:44:11
Original
2147 people have browsed it

In the project, the error level is set to: error_reporting(E_ALL | E_STRICT);
An error will be reported if the array variable is not defined, which is actually quite good, but sometimes there is really no need to report this error. PHP’s solution is:
@$_GET ['unkown'];
This way, the error message can be displayed.

The above introduces the solutions to errors such as undefined PHP variables, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template