flush
[mdref/mdref-http] / http / Url / toArray.md
diff --git a/http/Url/toArray.md b/http/Url/toArray.md
new file mode 100644 (file)
index 0000000..d800043
--- /dev/null
@@ -0,0 +1,34 @@
+# array http\Url::toArray()
+
+Retrieve the URL parts as array.
+
+## Params:
+
+None.
+
+## Returns:
+
+* array, the URL parts.
+
+## Example:
+
+    var_dump((new http\Url)->toArray());
+
+Yields:
+
+    array(7) {
+      ["scheme"]=>
+      string(4) "http"
+      ["user"]=>
+      string(0) ""
+      ["pass"]=>
+      string(0) ""
+      ["host"]=>
+      string(7) "smugmug"
+      ["path"]=>
+      string(1) "/"
+      ["query"]=>
+      string(0) ""
+      ["fragment"]=>
+      string(0) ""
+    }