Documentation

CharacterConvert

Table of Contents

character()  : string
CHAR.
code()  : int|string
CODE.
unicodeToOrd()  : int

Methods

character()

CHAR.

public static character(mixed $character) : string
Parameters
$character : mixed

Integer Value to convert to its character representation

Return values
string —

code()

CODE.

public static code(mixed $characters) : int|string
Parameters
$characters : mixed

String character to convert to its ASCII value

Return values
int|string —

A string if arguments are invalid

unicodeToOrd()

private static unicodeToOrd(string $character) : int
Parameters
$character : string
Return values
int —

Search results