Source Code:
(back to article)
<?php $var1 = [1, 2, 3]; $var2 = "hello"; echo is_array($var1) . "\n"; // output: 1 (true) echo is_array($var2) . "\n"; // output: (false) ?>
Result:
Report an issue