Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rawurldecode(3) [php man page]

RAWURLDECODE(3) 							 1							   RAWURLDECODE(3)

rawurldecode - Decode URL-encoded strings

SYNOPSIS
string rawurldecode (string $str) DESCRIPTION
Returns a string in which the sequences with percent ( %) signs followed by two hex digits have been replaced with literal characters. PARAMETERS
o $str - The URL to be decoded. RETURN VALUES
Returns the decoded URL, as a string. EXAMPLES
Example #1 rawurldecode(3) example <?php echo rawurldecode('foo%20bar%40baz'); // foo bar@baz ?> NOTES
Note rawurldecode(3) does not decode plus symbols ('+') into spaces. urldecode(3) does. SEE ALSO
rawurlencode(3), urldecode(3), urlencode(3), RFC 3986. PHP Documentation Group RAWURLDECODE(3)

Check Out this Related Man Page

PARSE_STR(3)								 1							      PARSE_STR(3)

parse_str - Parses the string into variables

SYNOPSIS
void parse_str (string $str, [array &$arr]) DESCRIPTION
Parses $str as if it were the query string passed via a URL and sets variables in the current scope. Note To get the current QUERY_STRING, you may use the variable $_SERVER['QUERY_STRING']. Also, you may want to read the section on vari- ables from external sources. Note The magic_quotes_gpc setting affects the output of this function, as parse_str(3) uses the same mechanism that PHP uses to populate the $_GET, $_POST, etc. variables. PARAMETERS
o $str - The input string. o $arr - If the second parameter $arr is present, variables are stored in this variable as array elements instead. RETURN VALUES
No value is returned. EXAMPLES
Example #1 Using parse_str(3) <?php $str = "first=value&arr[]=foo+bar&arr[]=baz"; parse_str($str); echo $first; // value echo $arr[0]; // foo bar echo $arr[1]; // baz parse_str($str, $output); echo $output['first']; // value echo $output['arr'][0]; // foo bar echo $output['arr'][1]; // baz ?> SEE ALSO
parse_url(3), pathinfo(3), http_build_query(3), get_magic_quotes_gpc(3), urldecode(3). PHP Documentation Group PARSE_STR(3)
Man Page