The IntlChar getBlockCode() function is used to get the Unicode allocation block containing the value val.
IntlChar::getBlockCode (val)
IntlChar getBlockCode()函數傳回val的區塊值。以下是清單-
IntlChar::BLOCK_CODE_BASIC_LATIN
IntlChar::BLOCK_CODE_GREEK
以下是一個範例-
<?php var_dump(IntlChar::getBlockCode("A") === IntlChar::BLOCK_CODE_BASIC_LATIN); echo "<br>"; var_dump(IntlChar::getBlockCode("PQRS") === IntlChar::BLOCK_CODE_BASIC_LATIN); echo "<br>"; var_dump(IntlChar::getBlockCode("u{2603}") === IntlChar::BLOCK_CODE_MISCELLANEOUS_SYMBOLS); ?>輸出#######以下是輸出−####
bool(true) bool(false) bool(false)## #
以上是在PHP中,IntlChar getBlockCode()函數的翻譯如下:的詳細內容。更多資訊請關注PHP中文網其他相關文章!