PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

parse_str

Tags: PHP 5.x PHP 7.x PHP 8.x

parse_str — Parses the string into variables.

Description

parse_str(
    string $string,
array &$result
): void
Parses string as if it were the query string passed via a URL and sets variables in the current scope (or in the array if result is provided).

Parameters

string
The input string.
result
If the second parameter result is present, variables are stored in this variable as array elements instead.

Return Values

No value is returned.

parse_str - New snippets