欢迎来到天天文库
浏览记录
ID:49225063
大小:840.00 KB
页数:36页
时间:2020-03-01
《PHP常用函数大全(新).doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、PHP常用函数大全字符串函数(important)addcslashes – 像C语言一样使用反斜线转义字符串中的字符addslashes -- 使用反斜线引用字符串bin2hex -- 将二进制数据转换成十六进制表示chop -- rtrim()的别名函数chr -- 返回指定的字符chunk_split -- 将字符串分割成小块convert_cyr_string -- 将字符由一种Cyrillic字符转换成另一种convert_uudecode -- Decodeauuencodedstringconvert_uuencode -- Uuenc
2、odeastringcount_chars -- 返回字符串所用字符的信息crc32 -- 计算一个字符串的crc32多项式crypt – 将字符串用DES编码加密echo – 输出一个或者是多个字符串explode -- 使用一个字符串分割另一个字符串fprintf – 格式化一个字符串并输出get_html_translation_table -- Returnsthetranslationtableusedby//&'">3、转换成HTML实体htmlentities – 将所有的字符转换成HTML实体html_entity_decode – 将所有的HTML实体转换成对应的字符htmlspecialchars_decode -- 将特定的HTML实体转换为相应的字符hebrev -- ConvertlogicalHebrewtexttovisualtexthebrevc -- ConvertlogicalHebrewtexttovisualtextwithnewlineconversionimplode – 将一个数组的所有元素连接成一个字符串join -- implo4、de()函数的别名levenshtein -- CalculateLevenshteindistancebetweentwostringslocaleconv -- Getnumericformattinginformationrtrim -- 去除一个字符串右边的空白(或者是其他的字符)ltrim -- 去除一个字符串左边的空白(或者是其他的字符)trim – 去掉字符串左右两边的空白(或者其他字符)md5_file – 将一个给定的文件用MD5编码md5 -- 将一个给定的字符串用MD5编码metaphone -- Calculatetheme5、taphonekeyofastringmoney_format – 将一个数字按照货币的格式进行格式化?????nl_langinfo -- Querylanguageandlocaleinformationnl2br -- 将字符串中的换成number_format -- Formatanumberwithgroupedthousandsord – 返回一个字符的ASCII值parse_str -- 解析字符串变量print – 输出一个字符串printf – 格式化并输出该字符串quoted_printable_decode -- C6、onvertaquoted-printablestringtoan8bitstringquotemeta -- Quotemetacharacterssetlocale -- Setlocaleinformationsha1_file – 将一个文件用SHA1进行编码(加密)sha1 -- 将一个字符串用SHA1进行编码(加密)similar_text -- 计算两个字符串之间的相似性soundex --计算一个字符串的soundexkeysprintf – 返回一个格式化后的字符串sscanf -- Parsesinputfromastringac7、cordingtoaformatstr_ireplace -- Case-insensitiveversionofstr_replace().str_pad -- Padastringtoacertainlengthwithanotherstringstr_repeat -- 重复字符串str_replace – 替换指定的字符串str_rot13 -- Performtherot13transformonastringstr_shuffle -- Randomlyshufflesastringstr_split -- 将一个字符串切割成一个数组ex8、:
3、转换成HTML实体htmlentities – 将所有的字符转换成HTML实体html_entity_decode – 将所有的HTML实体转换成对应的字符htmlspecialchars_decode -- 将特定的HTML实体转换为相应的字符hebrev -- ConvertlogicalHebrewtexttovisualtexthebrevc -- ConvertlogicalHebrewtexttovisualtextwithnewlineconversionimplode – 将一个数组的所有元素连接成一个字符串join -- implo
4、de()函数的别名levenshtein -- CalculateLevenshteindistancebetweentwostringslocaleconv -- Getnumericformattinginformationrtrim -- 去除一个字符串右边的空白(或者是其他的字符)ltrim -- 去除一个字符串左边的空白(或者是其他的字符)trim – 去掉字符串左右两边的空白(或者其他字符)md5_file – 将一个给定的文件用MD5编码md5 -- 将一个给定的字符串用MD5编码metaphone -- Calculatetheme
5、taphonekeyofastringmoney_format – 将一个数字按照货币的格式进行格式化?????nl_langinfo -- Querylanguageandlocaleinformationnl2br -- 将字符串中的换成number_format -- Formatanumberwithgroupedthousandsord – 返回一个字符的ASCII值parse_str -- 解析字符串变量print – 输出一个字符串printf – 格式化并输出该字符串quoted_printable_decode -- C
6、onvertaquoted-printablestringtoan8bitstringquotemeta -- Quotemetacharacterssetlocale -- Setlocaleinformationsha1_file – 将一个文件用SHA1进行编码(加密)sha1 -- 将一个字符串用SHA1进行编码(加密)similar_text -- 计算两个字符串之间的相似性soundex --计算一个字符串的soundexkeysprintf – 返回一个格式化后的字符串sscanf -- Parsesinputfromastringac
7、cordingtoaformatstr_ireplace -- Case-insensitiveversionofstr_replace().str_pad -- Padastringtoacertainlengthwithanotherstringstr_repeat -- 重复字符串str_replace – 替换指定的字符串str_rot13 -- Performtherot13transformonastringstr_shuffle -- Randomlyshufflesastringstr_split -- 将一个字符串切割成一个数组ex
8、:
此文档下载收益归作者所有