Home > Backend Development > PHP Tutorial > 问下php的空值有关问题

问下php的空值有关问题

WBOY
Release: 2016-06-13 11:45:16
Original
941 people have browsed it

问下php的空值问题
比如 
问题1:empty($str)与$str==''这两个句子的区别之处是
$row=$db->select('table', '*', 'id=1'); //
问题2:比如$row是取得表记录的数组,如果表记录为空的话,这个时候怎么判断数组$row是否为空呢?
问题3:如果$row有一条记录的话,其中有个字段aa为空null,那要通什么判断$row['aa']是否为null呢?

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