-
HUWWW
echo gettype($a); // outputs "string"echo empty($a); // outputs true, in your environment this is 1echo is_null($a); // outputs false, "" isn't null, in your environment this is probably blankecho isset($x); // outputs false, in your environment this is probably blank
-
拉风的咖菲猫
你得到所有的结果:字符串、真、假和假echo gettype($a); // outputs "string"echo empty($a); // outputs 1 (true)echo is_null($a); // outputs false, or "" in echoecho isset($x); // outputs false, or "" in echo您可以尝试以这种方式运行它以查看不同的结果:echo gettype($a),'-',empty($a),'-',is_null($a),'-',isset($x),'-';输出:string-1---
-
慕桂英546537
echo gettype($a); // Outputs a "string" because the datatype used is a stringecho empty($a); // Outputs true, because the criteria that it is an empty stringecho is_null($a); // Outputs false, "" isn't null, this is probably blankecho isset($x); //Outputs false because isset means "is set"