您好,欢迎访问一九零五行业门户网

php用于编码和解码的函数有哪些?

php用于编码和解码的函数
url:
urlencode(); //编码
urldecode(); //解码
url与数组互转:
parse_url ()
http_build_query()
base64:
base64_encode();
base64_decode();
json:
json_encode();
json_decode();
session:
session_encode();
session_decode();
字符转为html实体:
htmlentities()  / html_entity_decode()
所有字符转换为 html 实体
htmlspecialchars()  / htmlspecialchars_decode()
将特殊字符<" (小于)和 "> (大于)转换为 html 实体 
uuencode编码:
convert_uuencode();
convert_uudecode();
字符集编码相互转换:
iconv(); 
mb_convert_encoding();
更多相关知识,请访问 !!
其它类似信息

推荐信息