ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

trim

Summary

Returns a stripped version of the input string.

Usage

input|trim( [char_list] )

Parameters

NameTypeDescriptionRequired
char_list string Characters that should be removed. No.

Returns

A stripped version of the input string.

Description

This operator removes characters from the beginning and the end of the input string. By default, it will get rid of the following characters:

Character

ASCII value (dec)

ASCII value (hex)

Description

 

32

0x20

An ordinary space.

\t

9

0x09

A tab.

\n

10

0x0A

A new line (line feed).

\r

13

0x0D

A carriage return.

\0

0

0x00

The NUL-byte.

\x0B

11

0x0B

A vertical tab.

Examples

Example 1

{'    Gizmo is not a gremlin.  '|trim()}

The following output will be produced: "Gizmo is not a gremlin."

Balazs Halasy (05/02/2004 11:00 am)

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


Comments

There are no comments.