PHP/HTML/rawurldecode

Материал из Web эксперт
Перейти к: навигация, поиск

string rawurldecode ( string str ) converts a %-escaped string into its original format, reversing the operation of rawurlencode( ) .

 
<?
    $name = "P "H" P";
    $safe_name = rawurlencode($name);
  
    $unsafe_name = rawurldecode($name);
?>



string rawurlencode ( string str ) converts non-alphabetic symbols into numerical equivalents preceded by a percent sign

 
<?
    $name = "P "H" H";
    $safe_name = rawurlencode($name);
?>