Query: urldecode
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
URLDECODE(3) 1 URLDECODE(3) urldecode - Decodes URL-encoded stringSYNOPSISstring urldecode (string $str)DESCRIPTIONDecodes any % ## encoding in the given string. Plus symbols (' +') are decoded to a space character.PARAMETERSo $str - The string to be decoded.RETURN VALUESReturns the decoded string.EXAMPLESExample #1 urldecode(3) example <?php $query = "my=apples&are=green+and+red"; foreach (explode('&', $query) as $chunk) { $param = explode("=", $chunk); if ($param) { printf("Value for parameter "%s" is "%s"<br/> ", urldecode($param[0]), urldecode($param[1])); } } ?>NOTESWarning The superglobals $_GET and $_REQUEST are already decoded. Using urldecode(3) on an element in $_GET or $_REQUEST could have unex- pected and dangerous results.SEE ALSOurlencode(3), rawurlencode(3), rawurldecode(3), RFC 3986. PHP Documentation Group URLDECODE(3)
Related Man Pages |
---|
mb_convert_encoding(3) - php |
strtok(3) - php |
curl_unescape(3) - php |
explode(3) - php |
rawurlencode(3) - php |
Similar Topics in the Unix Linux Community |
---|
PHP problem |
arrange data tools |
Extract a word from sentence |
Enocian,sumarien,aztec,myan,macdeniacia decoded and tell me what you find and think on theat matter |
Unex |