note 109466 added to function.http-build-query

From: Date: Thu, 19 Jul 2012 15:57:15 +0000
Subject: note 109466 added to function.http-build-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-189299@lists.php.net to get a copy of this message
Is it worth noting that if query_data is an associative array and a value is itself an empty array, or an array of nothing but empty array (or arrays containing only empty arrays etc.), the corresponding key will not appear in the resulting query string? E.g. $post_data = array('name'=>'miller', 'address'=>array('address_lines'=>array()), 'age'=>23); echo http_build_query($post_data); will print name=miller&age=23 ---- Server IP: 69.147.83.197 Probable Submitter: 82.219.27.5 ---- Manual Page -- http://www.php.net/manual/en/function.http-build-query.php Edit -- https://master.php.net/note/edit/109466 Del: integrated -- https://master.php.net/note/delete/109466/integrated Del: useless -- https://master.php.net/note/delete/109466/useless Del: bad code -- https://master.php.net/note/delete/109466/bad+code Del: spam -- https://master.php.net/note/delete/109466/spam Del: non-english -- https://master.php.net/note/delete/109466/non-english Del: in docs -- https://master.php.net/note/delete/109466/in+docs Del: other reasons-- https://master.php.net/note/delete/109466 Reject -- https://master.php.net/note/reject/109466 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#189299) next »