php用于编码和解码的函数有哪些?
Release: 2020-09-04 13:54:16
Original
1506 people have browsed it
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();
更多相关知识,请访问 PHP中文网!!
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-13 11:44:01
-
2024-10-13 09:56:31
-
2024-10-11 20:58:41
-
2024-10-11 16:53:11
-
2024-10-11 11:54:51
-
2024-10-10 16:21:01
-
2024-10-10 15:18:02
-
2024-10-10 13:34:01
-
2024-10-10 13:26:26
-
2024-10-10 11:38:42