11 2014 档案

PHP判断键值数组是否存在,使用empty或isset或array_key_exists
摘要:1, 'b'=>0, 'c'=>NULL);echo'a test by empty: ', empty($a['a']) ? 'not exist': 'exist', PHP_EOL;echo'a test by isset: ', isset($a['a']) ? 'exist': 'not ... 阅读全文

posted @ 2014-11-26 11:39 指尖凝墨 阅读(2685) 评论(0) 推荐(0)