-
-
见PHP官方字符串处理函数手册,里面有很多有用的小工具:
https://www.php.net/manual/en/ref.strings.php
比如你这个问题就可以使用
addcslashes
函数实现,示例:echo addcslashes('http://haoziwl.cn', '/');
输出:
http:\/\/haoziwl.cn
-
PHP 如何获取Url转义
寻求帮助 / 47 / 1 / 发布于 2021-6-25 22:57:33 / 活跃于 2021-06-25 23:31:04