The is_numeric() function is used to detect whether a variable is an iterable value.
PHP version requirements: PHP 7 >= 7.1.0
bool is_iterable (mixed $var)
Parameter description:
$var: The variable to be detected, which can be an array or an object that implements the Traversable interface.
Returns TRUE if the specified variable is an iterable object, otherwise returns FALSE.
The output is:
bool(true)bool(true)bool(true)bool(false)bool(false)