Home  >  Article  >  Backend Development  >  php基础急需注意的地方

php基础急需注意的地方

WBOY
WBOYOriginal
2016-06-13 13:04:38822browse

php基础需要注意的地方
1、empty()只能传入变量,而不能传入表达式:
empty()只能传入变量,而不能传入表达式,如果传入一个表达式,会出现内部服务器错误。同时,页面会显示一片白。

2、变量的赋值是克隆,不是引用
$a = '1';
$b = $a;
unset($a);
print $a; 
仍可以输出$a.

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