博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ctype函数_PHP ctype_upper()函数与示例
阅读量:2527 次
发布时间:2019-05-11

本文共 797 字,大约阅读时间需要 2 分钟。

ctype函数

PHP ctype_upper()函数 (PHP ctype_upper() function)

ctype_upper() function is a character type (CType) function in PHP, it is used to check whether a given string contains all uppercase characters or not.

ctype_upper()函数是PHP中的字符类型(CType)函数,用于检查给定的字符串是否包含所有大写字符。

It returns true, if all characters of the given strings are in uppercase, else it returns false.

它返回true,如果给定字符串的所有字符都是大写的,否则返回FALSE。

Syntax:

句法:

ctype_upper(string) : bool

Example:

例:

Input: "HELLO"    Output: true    Input: "HELLO WORLD"    Output: false    Input: "Hello"    Output: false

PHP code:

PHP代码:

Output

输出量

HELLO contains all uppercase characters.HELLO WORLD does not contain all uppercase characters.HELLO123 does not contain all uppercase characters.Hello does not contain all uppercase characters.

翻译自:

ctype函数

转载地址:http://anvzd.baihongyu.com/

你可能感兴趣的文章
(转)在NGUI使用图片文字(数字、美术字)(直接可用于UILable)
查看>>
mongoDB在centos7上的安装
查看>>
python 函数
查看>>
导入导出
查看>>
MongoDB 分片操作
查看>>
在Azure Cloud Service中部署Java Web App(2)
查看>>
在64位系统中无法看到Microsoft Excel Application的问题
查看>>
中国剩余定理
查看>>
截取一段字符串中,两个指定字符串中间的字符串
查看>>
联合权值
查看>>
修改MAC地址的方法(未测试)
查看>>
linux ubuntu 关于vim得一些基本命令
查看>>
九度OJ 1340:小A的计算器 (进制转换)
查看>>
两篇随笔链接
查看>>
Java 类和Static关键字
查看>>
awk --- 常用技巧
查看>>
C++接口定义及实现举例
查看>>
C++
查看>>
设置数据库及表的默认字符集
查看>>
hdu-5596 GTW likes gt(模拟+优先队列)
查看>>