ord

Summary

Returns an array containing the ASCII/UNICODE values of the input string.

Usage

input|ord()

Returns

An array with ASCII/UNICODE values.

Description

This operator returns an array containing the ASCII/UNICODE values of the characters that make up the input string.

Examples

Example 1

{'abcdef'|ord()}

The following array will be returned: ( 97, 98, 99, 100, 101, 102 ).

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.