From c1a36e3b890cb9449e0d0abacbab9d6f4977bfd7 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Mon, 24 Nov 2003 13:31:10 +0000 Subject: [PATCH] using screen git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@144820 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/url/functions/http-build-query.xml | 32 +++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/reference/url/functions/http-build-query.xml b/reference/url/functions/http-build-query.xml index dfb7bba1a4..b3aac4929d 100644 --- a/reference/url/functions/http-build-query.xml +++ b/reference/url/functions/http-build-query.xml @@ -1,5 +1,5 @@ - + http_build_query @@ -81,19 +81,29 @@ $data = array('user'=>array('name'=>'Bob Smith', 'CEO'); echo http_build_query($data, 'flags_'); -/* Outputs: (word wrapped for readability) - user[name]=Bob+Smith&user[age]=47&user[sex]=M&user[dob]=5%1F12%1F1956& - pastimes[0]=golf&pastimes[1]=opera&pastimes[2]=poker&pastimes[3]=rap& - children[bobby][age]=12&children[bobby][sex]=M&children[sally][age]=8& - children[sally][sex]=F&flags_0=CEO - - Note: Only the numericly indexed element in the base array "CEO" - received a prefix. The other numeric indices, found under - pastimes, do not require a string prefix to be legal variable names. - */ ?> ]]> + + this will output : (word wrapped for readability) + + + + + + + + Only the numericly indexed element in the base array "CEO" received a + prefix. The other numeric indices, found under pastimes, do not + require a string prefix to be legal variable names. + + +