insert

Summary

Inserts stuff at specified position in a string.

Usage

$input_string|insert( offset, sequence )

Parameters

NameTypeDescriptionRequired
offset integer Position of insertion. yes
sequence string String to insert. yes

Returns

input string including inserted values.

Description

This operator inserts a sequence of characters at a specified position in a string. Returns the original string with the inserted values. There is also an array-version of this operator. Look in the arrays category.

Examples

{"my string is simple"|insert( 3, "static " )}

returns the string "my static string is simple".

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:57:21 am
by Balazs Halasy

Last updated

27/10/2004
9:54:56 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.