No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher une fonction PHP

IntlChar::ord

(PHP 7)

IntlChar::ordReturn Unicode code point value of character

Description

public static IntlChar::ord ( mixed $character ) : int

Returns the Unicode code point value of the given character.

This function compliments IntlChar::chr().

PHP: IntlChar::ord - Manual Home of Manuel PHP  Contents Haut

Parameters

character

A Unicode character.

PHP: IntlChar::ord - Manual Home of Manuel PHP  Contents Haut

Return Values

Returns the Unicode code point value as an integer.

PHP: IntlChar::ord - Manual Home of Manuel PHP  Contents Haut

Examples

Example #1 Testing different code points

<?php
var_dump
(IntlChar::ord("A"));
var_dump(IntlChar::ord(" "));
var_dump(IntlChar::ord("\u{2603}"));
?>

The above example will output:

int(65)
int(32)
int(9731)

PHP: IntlChar::ord - Manual Home of Manuel PHP  Contents Haut

See Also

Find a PHP function
Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph