2010-05-03 19 views

Respuesta

18

que puedes usar rawurldecode() .
Véase el Manual

6

puede utilizar esta función:

<?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 ; 
?> 

salida será: http://example.com

+0

Esto resolvió mi problema, gracias !! – Rako

Cuestiones relacionadas