PHP/HTML/rawurldecode

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

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

   <source lang="html4strict">

<?

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

?>

 </source>
   
  


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

   <source lang="html4strict">

<?

   $name = "P "H" H";
   $safe_name = rawurlencode($name);

?>

 </source>