排序
natsort
PHP natsort() 函数定义和用法natsort() 函数用自然顺序算法对给定数组中的元素排序。natsort() 函数实现了“自然排序”,即数字从 1 到 9 的排序方法,字母从 a 到 z 的排序方法,短者优先。...
count_chars
PHP count_chars() 函数定义和用法count_chars() 函数返回字符串所用字符的信息。语法count_chars(string,mode)参数描述string必需。规定要检查的字符串。mode可选。规定返回模式。默认是 0。...
array_udiff_assoc
PHP array_udiff_assoc() 函数定义和用法array_udiff_assoc() 函数返回 array1 中存在但其它数组中都不存在的部分。注意与 array_diff() 以及 array_udiff() 不同的是键名也用于比较。...
fnmatch
PHP fnmatch() 函数定义和用法fnmatch() 函数根据指定的模式来匹配文件名或字符串。语法fnmatch(pattern,string,flags)参数描述pattern必需。规定要检索的模式。string必需。规定要检查的字符...
file_put_contents
PHP file_put_contents() 函数定义和用法file_put_contents() 函数把一个字符串写入文件中。与依次调用 fopen(),fwrite() 以及 fclose() 功能一样。语法file_put_contents(file,data,mode,co...
uasort
PHP uasort() 函数定义和用法uasort() 函数使用用户自定义的比较函数对数组排序,并保持索引关联(不为元素分配新的键)。如果成功则返回 TRUE,否则返回 FALSE。该函数主要用于对那些单元顺序...
strip_tags
PHP strip_tags() 函数定义和用法strip_tags() 函数剥去 HTML、XML 以及 PHP 的标签。语法strip_tags(string,allow)参数描述string必需。规定要检查的字符串。allow可选。规定允许的标签。这...
flock
PHP flock() 函数定义和用法flock() 函数锁定或释放文件。若成功,则返回 true。若失败,则返回 false。语法flock(file,lock,block)参数描述file必需。规定要锁定或释放的已打开的文件。lock...
convert_uudecode
PHP convert_uudecode() 函数定义和用法convert_uudecode() 函数对 uuencode 编码的字符串进行解码。语法convert_uudecode(string)参数描述string必需。规定要解码的字符串。例子在本例中,我...
strcspn
PHP strcspn() 函数定义和用法strcspn() 函数返回在找到任何指定的字符之前,在字符串查找的字符数。语法strcspn(string,char,start,length)参数描述string必需。规定要搜索的字符串。char必...
