PHP parse_str() Function
PHP parse_str() Function
The parse_str() function in PHP parses a query string into variables.
Syntax
parse_str ( string $encoded_string [, array &$result ] )
Parameter
encoded_string(required)- This parameter represents the input string.
result(optional)- This parameter specifies the name of an array which store the variables and indicates that the variables will be stored in an array.
Return
NA
Example 1
Output
Name of Candidate: Reema Respective ID: 15cs1029
Example 2
Output
print()
Example 3
Output
PHP print() function
Example 4
Output
Array ( [name] => Tisha [class] => 3 )
