W3cubDocs

/PHP

mb_ord

(PHP 7 >= 7.2.0)

mb_ordGet code point of character

Description

mb_ord ( string $string [, string|null $encoding = null ] ) : int|false
Warning

This function is currently not documented; only its argument list is available.

Parameters

string
encoding

Return Values

Returns a code point of character or false on failure.

Changelog

Version Description
8.0.0 encoding is nullable now.

See Also

  • mb_chr() - Get a specific character
  • ord() - Convert the first byte of a string to a value between 0 and 255

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.mb-ord.php