2010-05-03 7 views

risposta

18

si dovrebbe usare rawurldecode() .
veda la Manual

6

è possibile utilizzare questa funzione:

<?php 
$smth = 'http%3A%2F%2Fexample.com'; 
$smth = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($smth)); 
$smth = html_entity_decode($smth,null,'UTF-8'); 
echo $smth ; 
?> 

uscita sarà: http://example.com

+0

Questo risolto il problema, grazie !! – Rako

Problemi correlati