php Unescape解码

180it 2020-02-19 AM 1944℃ 0条
<?php
//Unescape解码
function utf8_urldecode($str) 
{
  $str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str));
  return html_entity_decode($str,null,'UTF-8');;
}
?>
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

php Unescape解码