Home > Backend Development > PHP Tutorial > PHP 松散类型比较表

PHP 松散类型比较表

WBOY
Release: 2016-06-20 12:54:32
Original
936 people have browsed it

在使用这些表格之前,需要明白变量类型及它们的意义。例如,"42" 是一个字符串,而42 是一个整数。FALSE 是一个布尔值,而 "false" 是一个字符串

在没有定义变量 $x 的时候,如 if ($x) 的用法会导致一个 E_NOTICE 级别的错误。所以,可以考虑用 empty() 或者 isset() 函数来初始化变量。

php技能树

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