Home >> PHP >> parse_str() function in PHP

parse_str() function in PHP

Convert query string to variables.

Syntax

parse_str (string,array)

Example

parse_str("id=10&name=ram");
echo $id."<br>";
echo $name;

Output
10
ram

Post Your Comment

Next Questions
printf() function
quotemeta() function
rtrim() function
sha1() function
sha1_file() function
similar_text() function
str_ireplace() function
str_pad() function
str_repeat() function
str_replace() function
str_shuffle() function
str_split() function
str_word_count() function
strcasecmp() function
strchr() function
strcmp() function
strcspn() function
strip_tags() function
stripslashes() function
stripos() function
stristr() function
strlen() function
strnatcasecmp() function
strnatcmp() function
strncasecmp() function

Copyright ©2022 coderraj.com. All Rights Reserved.