helpers\BaseArrayHelper isTraversable()

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.

See also http://php.net/manual/en/function.is_array.php.

public static boolean isTraversable ( $var )
$var mixed

The variable being evaluated.

return boolean

Whether $var is array-like

doc_Yii
2016-10-30 17:04:27
Comments
Leave a Comment

Please login to continue.