Contains ViewHelper <f:contains>
The ContainsViewHelper checks if a provided string or array contains
the specified value. Depending on the input, this mimicks PHP's
in_ or
str_.
Go to the source code of this ViewHelper: ContainsViewHelper.php (GitHub).
Arguments of the <f:contains> ViewHelper
else
-
- Type
- mixed
Value to be returned if the condition if not met.
subject
-
- Type
- mixed
- Required
- 1
The string or array that might contain the value (haystack)
then
-
- Type
- mixed
Value to be returned if the condition if met.
value
-
- Type
- mixed
- Required
- 1
The value to check for (needle)