Home  >  Article  >  php教程  >  php 变量未定义等错误的解决方法_php基础

php 变量未定义等错误的解决方法_php基础

WBOY
WBOYOriginal
2016-05-17 09:01:29910browse

项目中把错误等级设置为:error_reporting(E_ALL | E_STRICT);

数组变量未定义也会报错,其实挺好的,但有时候真的不需要报该错误,PHP的解决办法是:

@$_GET['unkown'];

这样就可以放置该错误提示出来了.

Statement:
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