我正在阅读文档,但未指定如何对 url 进行编码。通常,您使用 urlencode
,但我认为这里不是这种情况。此字符串中使用的编码方法是什么:
http://url.retour.com/err.cgi?order_ref=votreRF12345
编辑: 我应该按顺序对此字符串 http://url.retour.com/err.cgi?order_ref=votreRF12345
调用什么 php 方法对其进行编码?
最佳答案
这个字符串可以用html_entity_decode解码,像这样:
<?php
echo html_entity_decode('http://url.retour.com/err.cgi?order_ref=votreRF12345');"
// output: http://url.retour.com/err.cgi?order_ref=votreRF12345
关于php - 这个字符串使用的编码方式是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7254895/