ez.no / exponential / documentation / reference / template operators / arrays / extract_right
$input_array|extract_right( $length )
| Name | Type | Description | Required |
|---|---|---|---|
| length | integer | Number of elements to extract | yes |
Array containing extracted elements.
This operator extracts a portion from the end of an array; the length parameter defines the length of the desired portion.
{array( 1, 2, 3, 4, 5, 6, 7)|extract_right( 3 )}
returns the array(5,6,7).
log in or create a user account to comment.
Comments