转来
php通过各种函数判断0和空
php通过各种函数判断0和空函数对0的判断$cast_id = 0;var_dump(strlen($cast_id)); //1var_dump(empty($cast_id)); // truevar_dump(isset($cast_id)); //truevar_dump(is_null($cast_id));//false对空的判断$cast_id = "";var_dump(strle...
php通过各种函数判断0和空函数对0的判断$cast_id = 0;var_dump(strlen($cast_id)); //1var_dump(empty($cast_id)); // truevar_dump(isset($cast_id)); //truevar_dump(is_null($cast_id));//false对空的判断$cast_id = "";var_dump(strle...