ord

Summary

Returns a desired sequence of characters.

Usage

$string|ord(  )

Returns

array with ASCII/UNICODE value(s).

Description

This operator simply returns an array containing the ASCII/UNICODE value(s) of the characters that are present in the input string.

Examples

{"abcdef"|ord}

returns the array (97,98,99,100,101,102).

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:52:28 am
by Balazs Halasy

Last updated

18/02/2004
10:42:25 am
by Derick Rethans

Authors

Balazs Halasy
Derick Rethans



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.