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

浙公网安备 33010602011771号