<p class="sougouContent"> 直接使用urlencode转码出来,结果还是字符串 <br> 而不是像这种:%6E1%7A%62%2F%6D%615%5C%76%740 <br> 如何英文字符能转成这种 </p> <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">echo $s = preg_replace('/../', '%$0', bin2hex('abc'));//%61%62%63echo urldecode($s); //abc</pre><div class="contentsignin">로그인 후 복사</div></div> </p>