Source Code:
(back to article)
<?php $example_array = [1, 2, 3]; if (is_iterable($example_array)) { echo "example_array is an iterable"; } else { echo "example_array is not an iterable"; }
Result:
Report an issue