ibexa

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

extract_left

Summary

Returns a portion of the start of the input string.

Usage

$input_string|extract_left( length )

Parameters

NameTypeDescriptionRequired
length integer The number of characters that should be extracted. Yes.

Returns

A string containing a chunk of the input string.

Description

This operator extracts a portion from the start of the input string. The "length" parameter must be used to define the length (number of characters) of the portion.

Examples

Example 1

{'Gooooood morning Vietnam!'|extract_left( 8 )}

The following output will be produced: "Gooooood".

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

Geir Arne Waaler (17/04/2012 11:56 am)

Balazs Halasy, Geir Arne Waaler


Comments

There are no comments.