extract left

Summary

Extracts a portion from the start of a string.

Usage

$input_string|extract_left( length )
 

Parameters

NameTypeDescriptionRequired
length integer Length of extraction. yes

Returns

string containing start of input string.

Description

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.

Examples

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

returns the string "Gooooood".

Comments

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
       mimetype_icon
       append
       begins_with
       break
       ord
       compare
       concat
       contains
       count_chars
       count_words
       crc32
       downcase
       ends_with
       explode
       extract
       extract left
       extract_right
       indent
       insert
       md5
       nl2br
       chr
       pad
       prepend
       remove
       repeat
       reverse
       rot13
       shorten
       simplify
       trim
       upcase
       upfirst
       upword
       wash
       wordtoimage
       wrap
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
11:56:29 am
by Balazs Halasy

Last updated

10/02/2004
11:11:06 am
by Balazs Halasy

Authors

Balazs Halasy



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.