Comunitatea PHP Romania
 

 
urldecode

urldecode

(PHP 3, PHP 4 , PHP 5)

urldecode -- Decodes URL-encoded string

Description

string urldecode ( string str)

Decodes any %## encoding in the given string. The decoded string is returned.

Exemplu 1. urldecode() example

<?php
$a
= explode('&', $QUERY_STRING);
$i = 0;
while (
$i < count($a)) {
    
$b = split('=', $a[$i]);
    echo
'Value for parameter ', htmlspecialchars(urldecode($b[0])),
         
' is ', htmlspecialchars(urldecode($b[1])), "<br />\n";
    
$i++;
}
?>

See also urlencode(), rawurlencode() and rawurldecode().

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
mihaitha mihaitha
Sibiu
Mascka Mascka
Braila
gabysolomon gabysolomon
Bacau
whooper whooper
Toronto ON
raul_ raul_
dechim dechim
Drobeta Turnu Severin
Amenthes Amenthes

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Home Insurance | Debt Consolidation | Mortgage | Cash Advance | MPAA
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis