string addslashes ( string str )
返回字符串,该字符串为了数据库查询语句等的需要在某些字符前加上了反斜线。这些字符是单引号(')、双引号(")、反斜线(\)与 NUL(NULL 字符)。
string stripslashes ( string str )
chop -- rtrim() 的别名函数
string chr ( int ascii ) ord();
返回相对应于 ascii 所指定的单个字符。
string convert_cyr_string ( string str, string from, string to )
此函数将给定的字符串从一种 Cyrillic 字符转换成另一种,返回转换之后的字符串。from 和 to 参数为单个字符,分别代表了源及目标 Cyrillic 字符集。支持的类型有:
array explode ( string separator, string string [, int limit] ) implode();
此函数返回由字符串组成的数组,每个元素都是 string 的一个子串,它们被字符串 separator 作为边界点分割出来。如果设置了 limit 参数,则返回的数组包含最多 limit 个元素,而最后那个元素将包含 string 的剩余部分。
void flush ( void ) 刷新PHP程序的缓冲,而不论PHP执行在何种情况下(CGI ,web服务器等等)。
array get_meta_tags ( string filename [, int use_include_path] )
打开 filename 逐行解析文件中的 标签。此参数可以是本地文件也可以是一个 URL。解析工作将在 处停止。
将 use_include_path 设置为 1 将促使 PHP 尝试按照 include_path 标准包含路径中的每个指向去打开文件。这只用于本地文件,不适用于 URL。
array get_headers ( string url [, int format] )
get_headers() returns an array with the headers sent by the server in response to a HTTP request. Returns FALSE on failure and an error of level E_WARNING will be issued.
array get_headers ( string url [, int format] )
string htmlspecialchars ( string string [, int quote_style [, string charset]] )
'&' (ampersand) becomes '&'
'"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
''' (single quote) becomes ''' only when ENT_QUOTES is set.
''>' (greater than) becomes '>'
string htmlentities ( string string [, int quote_style [, string charset]] )
string htmlentities ( string string [, int quote_style [, string charset]] )
string implode ( string glue, array pieces )
Returns a string containing a string representation of all the array elements in the same order, with the glue string between each element.
join -- 别名 implode()
array explode ( string separator, string string [, int limit] )
此函数返回由字符串组成的数组,每个元素都是 string 的一个子串,它们被字符串 separator 作为边界点分割出来。
md5
nl2br
ord 字符的序数值
parse_str 解析query 字符串成变量
$str = "first=value&arr[]=foo+bar&arr[]=baz";
parse_str($str);
echo $first; // value
echo $arr[0]; // foo bar
echo $arr[1]; // baz
prin