Skip to content

Latest commit

 

History

History
107 lines (87 loc) · 2.77 KB

File metadata and controls

107 lines (87 loc) · 2.77 KB

Function: QueryStringToStruct

Convert a query string to a struct.

Each key-value pair in the query string is separated by a delimiter. The default delimiter is {@code "&"}

Example:

 queryStringToStruct( "foo=bar
&
baz=qux" );
 "foo=bar
&
baz=qux".toStruct();
 

Method Signature

QueryStringToStruct(target=[string], delimiter=[string])

Arguments

Argument Type Required Description Default
target string true The query string to convert.
delimiter string false The delimiter used to separate key-value pairs in the query string. &

Examples

Related