在PHP中,IntlChar getBlockCode()函数的翻译如下:

在PHP中,IntlChar getBlockCode()函数的翻译如下:

The IntlChar getBlockCode() function is used to get the Unicode allocation block containing the value val.

Syntax

IntlChar::getBlockCode (val)

登录后复制

参数

  • val - 一个作为UTF-8字符串编码的整数或字符。

返回值

IntlChar getBlockCode()函数返回val的块值。以下是列表 -

  • IntlChar::BLOCK_CODE_BASIC_LATIN

  • IntlChar::BLOCK_CODE_GREEK

  • IntlChar::BLOCK_CODE_MISCELLANEOUS_SYMBOLS

示例

以下是一个示例 -

登录后复制

输出

以下是输出 −

bool(true)
bool(false)
bool(false)

登录后复制

以上就是在PHP中,IntlChar getBlockCode()函数的翻译如下:的详细内容,更多请关注每日运维网(www.mryunwei.com)其它相关文章!