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