Skip to the content
Documentation

ord

No ratings yet

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 ).

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.