Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

remove

Summary

Returns a pruned version of the input string.

Usage

input|remove( offset, length )

Parameters

NameTypeDescriptionRequired
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.".

Balazs Halasy (05/02/2004 10:58 am)

Balazs Halasy (04/05/2005 2:45 pm)


Comments

There are no comments.