ez.no / exponential / documentation / reference / template operators / arrays / ends_with
$input_array|ends_with( $integer1 [, $integer2 [, ... ] ] )
| Name | Type | Description | Required |
|---|---|---|---|
| integer1 | integer | Integer value to match end of array | yes |
| integer2 | integer | Integer value to match end of array | no |
| ... |
True if parameters match end of input array, false if not.
The ends_with operator checks if the inputted array ends with a specified elements (or not). Returns true or false.
{array(1,2,3,4,5,6,7)|ends_with(5,6,7)}
returns true.
{array(1,2,3,4,5,6,7)|ends_with(4,5,6)}
returns false.
log in or create a user account to comment.
Comments