flush
[mdref/mdref-http] / http / QueryString / __construct.md
diff --git a/http/QueryString/__construct.md b/http/QueryString/__construct.md
new file mode 100644 (file)
index 0000000..8a1140b
--- /dev/null
@@ -0,0 +1,30 @@
+# void http\QueryString::__construct([mixed $params = NULL])
+
+Create an independent querystring instance.
+
+## Params:
+
+* Optional mixed $params = NULL  
+  The query parameters to use or parse.
+  
+## Throws:
+
+* http\Exception
+
+## Example:
+
+    $qs = new http\QueryString("foo=bar&a[]=1&a[]=2");
+    print_r($qs->toArray());
+
+Would yield:
+
+    Array
+    (
+        [foo] => bar
+        [a] => Array
+            (
+                [0] => 1
+                [1] => 2
+            )
+    
+    )