Javatpoint Logo
Javatpoint Logo

PHP string parse_str() Function

PHP string parse_str() is in-built function. It is used to parse the string into variables.

Syntax:

Parameter Description Required/Optional
String Specify the string to parse required
Array Specify the name of an array to store the variables. optional

Example 1

Output:

Array ( [name] => John [age] => 26 )

Example 2

Output:

Your Name:John
Your Age:26

Example 3

Output:

JavaTpoint

Example 4

Output:

PHP

Next TopicPHP String




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA