发布于 2023-11-20 16:18:59 浏览 220
$chineseUrl = "https://www.example.com/查询";
$encodedUrl = urlencode($chineseUrl);
echo $encodedUrl;
输出结果:
https%3A%2F%2Fwww.example.com%2F%E6%9F%A5%E8%AF%A2
$chineseUrl = "https://www.example.com/查询";
$encodedUrl = rawurlencode($chineseUrl);
echo $encodedUrl;
输出结果:
https%3A%2F%2Fwww.example.com%2F%E6%9F%A5%E8%AF%A2
JS基础 发布于 2023-11-20 16:17:33 浏览 385
PHP基础 发布于 2023-10-19 10:55:42 浏览 233
JS基础 发布于 2023-10-10 15:01:36 浏览 215
EXCEL基础 发布于 2023-06-10 09:21:46 浏览 473
PHP基础 发布于 2022-11-08 21:38:33 浏览 441
PHP基础 发布于 2022-08-01 12:38:07 浏览 409
WORD基础 发布于 2022-07-03 14:25:04 浏览 522
CAD基础 发布于 2022-06-29 11:07:50 浏览 435
CSS基础 发布于 2022-04-28 12:08:57 浏览 516