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

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

ctype函数

PHP ctype_punct()函数 (PHP ctype_punct() function)

ctype_punct() function is a character type (CType) function in PHP, it is used to check whether a given string contains all punctuation characters (can be considered as special characters) or not.

ctype_punct()函数是PHP中的字符类型(CType)函数,用于检查给定的字符串是否包含所有标点字符(可以视为特殊字符)。

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

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

Syntax:

句法:

ctype_punct(string) : bool

Example:

例:

Input: "@!~#"    Output: true    Input: "@!  #~"    Output: false    Input: "!"    Output: false

PHP code:

PHP代码:

Output

输出量

@!~# contains all punctuation characters.@!  #~ does not contain all punctuation characters.! does not contain all punctuation characters.@!123 does not contain all punctuation characters.

翻译自:

ctype函数

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

你可能感兴趣的文章
小D课堂 - 新版本微服务springcloud+Docker教程_6-02 springcloud网关组件zuul
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-1.快速搭建SpringBoot项目,采用Eclipse...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_1-4.在线教育后台数据库设计...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-3.热部署在Eclipse和IDE里面的使用...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_1-3.在线教育站点需求分析和架构设计...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-4.后端项目分层分包及资源文件处理...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-2.快速搭建SpringBoot项目,采用IDEA...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_3-5.PageHelper分页插件使用
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_5-6.微信扫码登录回调本地域名映射工具Ngrock...
查看>>
小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_5-8.用户模块开发之保存微信用户信息...
查看>>
Linux下Nginx安装
查看>>
LVM扩容之xfs文件系统
查看>>
Hbase记录-client访问zookeeper大量断开以及参数调优分析(转载)
查看>>
代码片段收集
查看>>
vue-cli3创建项目时报错
查看>>
输入1-53周,输出1-53周的开始时间和结束时间
查看>>
实验二
查看>>
shell——按指定列排序
查看>>
crash 收集
查看>>
507 LOJ 「LibreOJ NOI Round #1」接竹竿
查看>>