string addcslashes ( string $str , string $charlist )
Returns a string with backslashes before characters that are listed in charlist parameter.
(实现转义字符串中的字符,即在指定的字符前面加上反斜线)

string addslashes ( string $str )
Returns a string with backslashes before characters that need to be quoted in database queries etc.
These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte).
(给字符串加入斜线)

string bin2hex ( string $str )
Returns an ASCII string containing the hexadecimal representation of str. The conversion is done byte-wise with the high-nibble first.
(将二进制数转换成十六进制数)

string chr ( int $ascii )
Returns a one-character string containing the character specified by ascii.
This function complements ord().
(返回相对应于 ASCII 所指定的单个字符)

string chunk_split ( string $body [, int $chunklen = 76 [, string $end = "\r\n" ]] )
Can be used to split a string into smaller chunks which is useful for e.g.
converting base64_encode() output to match RFC 2045 semantics. It inserts end every chunklen characters.
(将字符分隔成小段供其他函数使用)

string convert_cyr_string ( string $str , string $from , string $to )
Converts from one Cyrillic character set to another.
(将古斯拉夫字符串转成其他的字符串)

mixed count_chars ( string $string [, int $mode = 0 ] )
Counts the number of occurrences of every byte-value (0..255) in string and returns it in various ways.
(返回字符串所用字符的信息)

int crc32 ( string $str )
Generates the cyclic redundancy checksum polynomial of 32-bit lengths of the str.
This is usually used to validate the integrity of data being transmitted.
(计算一个字符串的 crc32 多项式)

string crypt ( string $str [, string $salt ] )
crypt() will return a hashed string using the standard Unix DES-based algorithm or alternative algorithms that may be available on the system.
(将字符串用 UNIX 的标准加密 DES 模块加密)

void echo ( string $arg1 [, string $... ] )
Outputs all parameters.
(用来输出字符串)

array explode ( string $delimiter , string $string [, int $limit ] )
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter.
(将字符串依指定的字符串或字符 separator 切开)

int fprintf ( resource $handle , string $format [, mixed $args [, mixed $... ]] )
Write a string produced according to format to the stream resource specified by handle.
(将内存中的数据进行格式化,转换成相应的字符串,并以 ASCII 代码形式输出到文本文件中)

string htmlentities ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 [, string $encoding = 'UTF-8' [, bool $double_encode = true ]]] )
This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.
If you want to decode instead (the reverse) you can use html_entity_decode().
(将所有的字符都转成 HTML 字符串)

string htmlspecialchars ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 [, string $encoding = 'UTF-8' [, bool $double_encode = true ]]] )
Certain characters have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings. This function returns a string with these conversions made.
If you require all input substrings that have associated named entities to be translated, use htmlentities() instead.
(将特殊字符转换成 HTML 格式)

string implode ( string $glue , array $pieces )
string implode ( array $pieces )
Join array elements with a glue string.
(实现将数组的内容组合成一个字符串)

string md5_file ( string $filename [, bool $raw_output = false ] )
Calculates the MD5 hash of the file specified by the filename parameter using the ? RSA Data Security, Inc.
MD5 Message-Digest Algorithm, and returns that hash. The hash is a 32-character hexadecimal number.
(计算一个指定文件的 md5 哈希)

string md5 ( string $str [, bool $raw_output = false ] )
string md5 ( string $str [, bool $raw_output = false ] )
Calculates the MD5 hash of str using the ? RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash.
(计算字符串的 md5 哈希)

string metaphone ( string $str [, int $phonemes = 0 ] )
string metaphone ( string $str [, int $phonemes = 0 ] )
Calculates the metaphone key of str.

Similar to soundex() metaphone creates the same key for similar sounding words.
It's more accurate than soundex() as it knows the basic rules of English pronunciation.
The metaphone generated keys are of variable length.
Metaphone was developed by Lawrence Philips <lphilips at verity dot com>.
It is described in ["Practical Algorithms for Programmers", Binstock & Rex, Addison Wesley, 1995].
(获取字符串的读音值)

string money_format ( string $format , float $number )
money_format() returns a formatted version of number. This function wraps the C library function strfmon(),
with the difference that this implementation converts only one number at a time.
(将数字格式化成货币类型字符串)

string nl_langinfo ( int $item )
nl_langinfo() is used to access individual elements of the locale categories.
Unlike localeconv(), which returns all of the elements, nl_langinfo() allows you to select any specific element.
(查询语言和地点信息)

string nl2br ( string $string [, bool $is_xhtml = true ] )
Returns string with '<br />' or '<br>' inserted before all newlines (\r\n, \n\r, \n and \r).
(将换行字符转换成 HTML 换行的指令)

string number_format ( float $number [, int $decimals = 0 ] )
string number_format ( float $number , int $decimals = 0 , string $dec_point = '.' , string $thousands_sep = ',' )
This function accepts either one, two, or four parameters (not three):
If only one parameter is given, number will be formatted without decimals, but with a comma (",") between every group of thousands.
If two parameters are given, number will be formatted with decimals decimals with a dot (".") in front, and a comma (",")
between every group of thousands.
If all four parameters are given, number will be formatted with decimals decimals, dec_point instead of a dot (".")
before the decimals and thousands_sep instead of a comma (",") between every group of thousands.
(将数字字符串格式化)

int ord ( string $string )
Returns the ASCII value of the first character of string.
This function complements chr().
(返回字符串中首个字节的 ASCII值.该函数和 chr() 函数相反.)

void parse_str ( string $str [, array &$arr ] )
Parses str as if it were the query string passed via a URL and sets variables in the current scope.
(对浏览器中通过 GET 方法获取的 QUERY_STRING 字符串进行解析)

int print ( string $arg )
Outputs arg.
(输出字符串)

int printf ( string $format [, mixed $args [, mixed $... ]] )
Produces output according to format.
(将字符串进行格式化)

quoted_printable_decode 对经过 quoted_printable 编码后的字符串进行解码,返回8位的字符串
quotemeta 将特殊字符前加上反斜线.其中的特殊字符包括: . \\ + * ? [ ^ ] ( $ )
string rtrim ( string $str [, string $charlist ] )
去除字符串末尾的空格

int similar_text ( string $first , string $second [, float &$percent ] )
计算两个字符串的相似度

string sprintf ( string $format [, mixed $args [, mixed $... ]] )
将字符串进行格式化

mixed sscanf ( string $str , string $format [, mixed &$... ] )
按照指定的格式解析字符串

str_ireplace 将某个指定的字符串都替换成另一个指定的字符串(大小写不敏感)
str_pad 将字符串填充成指定长度的字符串

string str_repeat ( string $input , int $multiplier )
str_repeat 将指定的字符串重复输出

str_replace 取代所有在字符串中出现的子串

string str_shuffle ( string $str )
随机打乱字符串中字符的顺序

array str_split ( string $string [, int $split_length = 1 ] )
转换字符串为数组

strcasecmp 对两个字符串进行比较
strchr 获取指定字符串 (A) 在另一个字符串 (B) 中首次出现的位置
int strcmp ( string $str1 , string $str2 )
Note that this comparison is case sensitive.
(对两个字符串进行比较)

int strcoll ( string $str1 , string $str2 )
Note that this comparison is case sensitive, and unlike strcmp() this function is not binary safe.
(对两个字符串进行比较)

int strcspn ( string $str1 , string $str2 [, int $start [, int $length ]] )
返回字符串中从 start 开始处不符合参数 mask 的字符串长度

string strip_tags ( string $str [, string $allowable_tags ] )
去除字符串中的 HTML 和 PHP 标签

int stripos ( string $haystack , string $needle [, int $offset = 0 ] )
查找指定字符串在另一个字符串中首次出现的位置,该函数不区分大小写

string stristr ( string $haystack , mixed $needle [, bool $before_needle = false ] )
获取指定字符串 (A) 在另一个字符串 (B) 中首次出现的位置到 (B) 字符串末尾的所有字符串

int strlen ( string $string )
获取指定字符串的长度

strnatcasecmp 用自然运算法则比较字符串的大小.该函数不区分大小写
strnatcmp 用字符运算法则比较字符串的大小.该函数区分大小写

int strncasecmp ( string $str1 , string $str2 , int $len )
比较字符串中的前 n 个字符.该函数不区分大小写

int strcasecmp ( string $str1 , string $str2 )
比较字符串中的前 n 个字符.该函数区分大小写

int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )
查找指定字符串 (A) 在字符串 (B) 中首次出阿信的位置.本函数区分大小写

string strrchr ( string $haystack , mixed $needle )
查找指定字符串 (A) 在另一个字符串 (B) 中最后一次出现的位置.本函数区分大小写.

string strrev ( string $string )
将字符串倒转输出

int strripos ( string $haystack , string $needle [, int $offset = 0 ] )
查找指定字符串 (A) 在另一个字符串 (B) 中最后一次出现的位置.本函数不区分大小写.

int strrpos ( string $haystack , string $needle [, int $offset = 0 ] )
查找指定字符串 (A) 在另一个字符串 (B) 中最后一次出现的位置.本函数区分大小写.

strspn 获取字符串开始符合参数 mask 的字符的数量

strstr 获取一个指定字符串在另一个字符串中首次出现的位置到后者末尾的子字符串

string strtok ( string $str , string $token )
string strtok ( string $token )
将字符串分割成小块

string strtolower ( string $string )
将字符串转换为小写字母

string strtoupper ( string $string )
将字符串转换为大写字母

string strtr ( string $str , string $from , string $to )
string strtr ( string $str , array $replace_pairs )
将字符串中的字符转换成指定字符

int substr_count ( string $haystack , string $needle [, int $offset = 0 [, int $length ]] )
获取指定字符在字符串中出现的次数

mixed substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] )
将字符串中的部分字符串替换为指定的字符串

string substr ( string $string , int $start [, int $length ] )
从指定的字符串 str 中按照指定的位置 start 截取一定长度 length 的字符

string trim ( string $str [, string $charlist ] )
删除字符串中首尾的空白或者其他字符)

string ucfirst ( string $str )
将字符串中的第一字母大写

string ucwords ( string $str )
将字符串中的每个词的第一个字母大写

int vprintf ( string $format , array $args )
Display array values as a formatted string according to format (which is described in the documentation for sprintf()).
Operates as printf() but accepts an array of arguments, rather than a variable number of arguments.
(输出格式化字符串)

string vsprintf ( string $format , array $args )
Operates as sprintf() but accepts an array of arguments, rather than a variable number of arguments.
(输出格式化字符串到变量)

参考链接:http://www.php.net/manual/en/index.php

标签: none

评论已关闭