diff --git a/reference/url/functions/http-build-query.xml b/reference/url/functions/http-build-query.xml
index 1aca546863..cb198b3e16 100644
--- a/reference/url/functions/http-build-query.xml
+++ b/reference/url/functions/http-build-query.xml
@@ -10,7 +10,7 @@
&reftitle.description;
stringhttp_build_query
- arrayformdata
+ mixedquery_data
stringnumeric_prefix
stringarg_separator
@@ -25,14 +25,19 @@
- formdata
+ query_data
May be an array or object containing properties.
- The array form may be a simple one-dimensional structure, or an array
- of arrays (who in turn may contain other arrays).
+ If query_data is an array, it may be a simple
+ one-dimensional structure, or an array of arrays (which in
+ turn may contain other arrays).
+
+
+ If query_data is an object, then only public
+ properties will be incorporated into the result.
@@ -113,12 +118,19 @@ $data = array('foo'=>'bar',
'cow'=>'milk',
'php'=>'hypertext processor');
-echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor
-echo http_build_query($data, '', '&'); // foo=bar&baz=boom&cow=milk&php=hypertext+processor
+echo http_build_query($data) . "\n";
+echo http_build_query($data, '', '&');
?>
]]>
+ &example.outputs;
+
+
+
@@ -189,23 +201,39 @@ children%5Bsally%5D%5Bsex%5D=F&flags_0=CEO
foo = 'bar';
- $this->baz = 'boom';
+ public function __construct(){
+ $this->pub_bar = new childClass();
+ $this->prot_bar = new childClass();
+ $this->priv_bar = new childClass();
}
}
-$data = new myClass();
+class childClass {
+ public $pub = 'publicChild';
+ protected $prot = 'protectedChild';
+ private $priv = 'privateChild';
+}
-echo http_build_query($data); // foo=bar&baz=boom
+$parent = new parentClass();
+echo http_build_query($parent);
?>
]]>
+ &example.outputs;
+
+
+