parse_query: Split a query string into component parts

Description Usage Arguments Details References Examples

Description

While straighten will returns parsed GET query string parameters there are times (i.e. in HTML <form> processing) when the body of the request contains a URL encoded query string as well.

Usage

1
parse_query(query)

Arguments

query

query string to decode

Details

This function will take any query string and return a named list of the paremters. Both the names and values will be URL decoded.

References

Query Strings

Examples

1
parse_query("a=1&b=test")

Example output

$a
[1] "1"

$b
[1] "test"

curlconverter documentation built on Jan. 15, 2017, 3:04 p.m.