Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp parse str

This page redirects to an external site: https://developer.wordpress.org/reference/functions/wp_parse_str/

Description

Parses a string into variables to be stored in an array. Uses parse_str().

Uses stripslashes() if magic_quotes_gpc is on.

Usage

<code style="color: #000000"><span style="color: #0000BB"><?php wp_parse_str</span><span style="color: #007700">( </span><span style="color: #0000BB">$string</span><span style="color: #007700">, </span><span style="color: #0000BB">$array </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>

Parameters

$string
(string) (required) The string to be parsed.
Default: None
$array
(array) (required) Variables will be stored in this array.
Default: None

Change Log

Since: 2.2.1

Source File

wp_parse_str() is located in wp-includes/formatting.php