ends_with

Summary

Checks if a string ends with a specific element/sequence.

Usage

$input_string|ends_with( sequence )

Parameters

NameTypeDescriptionRequired
sequence string String to look for. yes

Returns

true if match, false otherwise.

Description

The ends_with operator checks if the inputted string ends with a specified element/character/sequence (or not). Returns true if the sequence is found, false otherwise. This is basically the same operator as the "ends_with" operator within the arrays category.

Examples

{"Linux is great!"|ends_with("great!")}

returns true.

{"Linux is great!"|begins_with("great")}

returns false.

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:54:39 am
by Balazs Halasy

Last updated

10/02/2004
10:54:12 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.