string_type_ctype.lib.php

来自「phpMyAdmin图形界面化操作,我已经配置好了,只要把解要压缩后的文件放到站」· PHP 代码 · 共 103 行

PHP
103
字号
<?php/* vim: set expandtab sw=4 ts=4 sts=4: *//** * Specialized String Functions for phpMyAdmin * * Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net> * http://www.orbis-terrarum.net/?l=people.robbat2 * * Defines a set of function callbacks that have a pure C version available if * the "ctype" extension is available, but otherwise have PHP versions to use * (that are slower). * * The SQL Parser code relies heavily on these functions. * * @version $Id: string_type_ctype.lib.php 10294 2007-04-17 11:59:09Z cybot_tm $ *//** * Checks if a character is an alphanumeric one * * @uses    ctype_alnum() * @param   string   character to check for * @return  boolean  whether the character is an alphanumeric one or not */function PMA_STR_isAlnum($c){    return ctype_alnum($c);} // end of the "PMA_STR_isAlnum()" function/** * Checks if a character is an alphabetic one * * @uses    ctype_alpha() * @param   string   character to check for * @return  boolean  whether the character is an alphabetic one or not */function PMA_STR_isAlpha($c){    return ctype_alpha($c);} // end of the "PMA_STR_isAlpha()" function/** * Checks if a character is a digit * * @uses    ctype_digit() * @param   string   character to check for * @return  boolean  whether the character is a digit or not */function PMA_STR_isDigit($c){    return ctype_digit($c);} // end of the "PMA_STR_isDigit()" function/** * Checks if a character is an upper alphabetic one * * @uses    ctype_upper() * @param   string   character to check for * @return  boolean  whether the character is an upper alphabetic one or not */function PMA_STR_isUpper($c){    return ctype_upper($c);} // end of the "PMA_STR_isUpper()" function/** * Checks if a character is a lower alphabetic one * * @uses    ctype_lower() * @param   string   character to check for * @return  boolean  whether the character is a lower alphabetic one or not */function PMA_STR_isLower($c){    return ctype_lower($c);} // end of the "PMA_STR_isLower()" function/** * Checks if a character is a space one * * @uses    ctype_space() * @param   string   character to check for * @return  boolean  whether the character is a space one or not */function PMA_STR_isSpace($c){    return ctype_space($c);} // end of the "PMA_STR_isSpace()" function/** * Checks if a character is an hexadecimal digit * * @uses    ctype_xdigit() * @param   string   character to check for * @return  boolean  whether the character is an hexadecimal digit or not */function PMA_STR_isHexDigit($c){    return ctype_xdigit($c);} // end of the "PMA_STR_isHexDigit()" function?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?