运行 ❯
获取您自己的
PHP
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $a = "Hello"; echo "a is " . is_scalar($a) . "<br>"; $b = 0; echo "b is " . is_scalar($b) . "<br>"; $c = 32; echo "c is " . is_scalar($c) . "<br>"; $d = NULL; echo "d is " . is_scalar($d) . "<br>"; $e = array("red", "green", "blue"); echo "e is " . is_scalar($e) . "<br>"; ?> </body> </html>
a 是 1
b 是 1
c 是 1
d 是
e 是