📜  PHP | IntlChar::isupper()函数

📅  最后修改于: 2022-05-13 01:56:26.469000             🧑  作者: Mango

PHP | IntlChar::isupper()函数

IntlChar::isupper()函数是PHP中的一个内置函数,用于检查给定的输入字符是否为大写字符。

句法:

bool IntlChar::isupper( $codepoint )

参数:此函数接受一个强制的参数$codepoint 。输入参数是一个字符,它被编码为UTF-8字符串。

返回值:如果$codepoint是大写字符,则返回 True,否则返回 False。

下面的程序说明了PHP中的IntlChar::isupper()函数:

方案一:

PHP


PHP


输出:

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

注意:如果使用字符串和数字(一位数除外)作为参数,则返回 NULL。

方案二:

PHP


输出:

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

相关文章:

  • PHP | IntlChar::isdigit()函数
  • PHP | IntlChar::isalnum ()函数
  • PHP | IntlChar::isalpha()函数

参考: http: PHP。 PHP