Solutions to php undefined variables and other errors_PHP tutorial

WBOY
Release: 2016-07-21 15:32:10
Original
1104 people have browsed it

In the project, the error level is set to: error_reporting(E_ALL | E_STRICT);

Undefined array variables will also report an error, 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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322860.htmlTechArticleIn the project, the error level is set to: error_reporting(E_ALL | E_STRICT); If the array variable is not defined, an error will also be reported. In fact, It's good, but sometimes there is really no need to report this error. PHP's solution is:...
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!