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

问下php的空值有关问题

WBOY
WBOYOriginal
2016-06-13 11:45:16882browse

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

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