WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp parse str

Contents

Description

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

Uses stripslashes() if magic_quotes_gpc is on.

Usage

<?php wp_parse_str$string$array ); ?>

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