remove
Summary
Returns a pruned version of the input string.
Usage
input|remove( offset, length )Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| offset | integer | The offset to start at. | Yes. |
| length | integer | The number of characters that should be removed. | Yes. |
Returns
A pruned version of the input string.
Description
This remove operator removes characters from the input string and returns the pruned version. The "offset" and "length" parameters must be used to define the start and length of the portion that should be removed.
Examples
Example 1
'My string is simple.'|remove( 3, 2 )The following string will be produced: "My ring is simple.".
Changed in Exponential 6.0.15
The named parameters of the operator remove in Exponential 6.0.15 (eZTemplateArrayOperator::namedParameterList(), lib/eztemplate/classes/eztemplatearrayoperator.php), by position:
| Position | 6.0.15 (name in the code) | This page |
|---|---|---|
| 2 | length, required: No. | length, required: Yes. |
Balazs Halasy (05/02/2004 10:58 am)
Graham Brookins (05/11/2026 10:35 am)