php基础急需注意的地方

WBOY
Release: 2016-06-13 13:04:38
Original
836 people have browsed it

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

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

Related labels:
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!