input|ends_with( element1 [, element2 [, ... ] ] )
Name | Type | Description | Required |
---|---|---|---|
element1 | any | An element that should be matched. | Yes. |
element2 | any | Another element that should be matched. | No. |
This operator checks if the input array ends with a specified sequence of elements. If yes, the operator returns TRUE, otherwise FALSE will be returned.
{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.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.