isset 和 array_key_exists 函数都可以用来测试数组中变量是否存在: if(isset($array[$i])){ echo "存在"; } if(array_key_exists($i, $array)) { echo "存在"; }.
確定! 回上一頁