Type.isArray ViewHelper <be:type.isArray>
Internal
This ViewHelper is marked as internal. It is subject to be changed without notice. Use at your own risk.
ViewHelper to check whether the given value is an array.
<f:if condition="{be:type.isArray(value: myVariable)}">
<f:then>myVariable is an array</f:then>
<f:else>myVariable is not an array</f:else>
</f:if>
Copied!
Go to the source code of this ViewHelper: Type\IsArrayViewHelper.php (GitHub).
Arguments
The following arguments are available for the type.isArray ViewHelper:
value
-
- Type
- mixed
- Required
- 1
The variable being checked