PHP string parse_str() Function

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

Syntax:

ParameterDescriptionRequired/Optional
StringSpecify the string to parserequired
ArraySpecify 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




Latest Courses