词条 | ctype_lower |
释义 | ctype_lower(PHP 4 >= 4.0.4, PHP 5) ctype_lower -- 检查小写字母 函数原型bool ctype_lower ( string text ) 检查小写字母 范例<?php $strings = array('aac123', 'qiutoas', 'QASsdks'); foreach ($strings as $testcase) { if (ctype_lower($testcase)) { echo "The string $testcase consists of all lowercase letters.\"; } else { echo "The string $testcase does not consist of all lowercase letters.\"; } } ?> 上例将输出:The string aac123 does not consist of all lowercase letters. The string qiutoas consists of all lowercase letters. The string QASsdks does not consist of all lowercase letters. |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。