ez.no / exponential / documentation / reference / template operators / strings / extract left
$input_string|extract_left( length )
| Name | Type | Description | Required |
|---|---|---|---|
| length | integer | Length of extraction. | yes |
string containing start of input string.
This operator extracts a portion from the start of the inputted string; the length parameter defines the length of the desired portion. The operator also works with arrays, refer to "extract_left" within the arrays category.
{"Gooooood morning Vietnam!"|extract_left(8)}
returns the string "Gooooood".
Comments