mb_ord

(PHP 7 >= 7.2.0, PHP 8)

mb_ordGet code point of character

说明

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

警告

本函数还未编写文档,仅有参数列表。

参数

string

encoding

返回值

Returns a code point of character 或者在失败时返回 false.

更新日志

版本 说明
8.0.0 现在 encoding 可以为 null。

参见

  • mb_chr() - Get a specific character
  • ord() - 转换字符串第一个字节为 0-255 之间的值