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