Type.isArray ViewHelper <be:type.isArray>
Note
This ViewHelper is not available by default.
Import its namespace
{namespace be=TYPO3\ in the Fluid file or
xmlns: in the opening HTML tag.
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