parse_str

(PHP 3, PHP 4 , PHP 5)

parse_str -- Parses the string into variables

Description

void parse_str ( string str [, array arr])

Parses str as if it were the query string
passed via a URL and sets variables in the current scope. If
the second parameter arr is present,
variables are stored in this variable as array elements instead.

Note:
Support for the optional second parameter was added in PHP 4.0.3.