isTraversable() public static method (available since version 2.0.8)
Checks whether a variable is an array or Traversable.
This method does the same as the PHP function is_array() but additionally works on objects that implement the Traversable interface.
public static boolean isTraversable ( $var ) | ||
---|---|---|
$var | mixed |
The variable being evaluated. |
return | boolean |
Whether $var is array-like |
Please login to continue.