執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $a = "Hello"; echo "a is " . is_iterable($a) . "<br>"; $b = array("red", "green", "blue"); echo "b is " . is_iterable($b) . "<br>"; $c = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43"); echo "c is " . is_iterable($c) . "<br>"; $d = [1, 2, 3]; echo "d is " . is_iterable($d) . "<br>"; ?> </body> </html>
a 是
b 是 1
c 是 1
d 是 1