How to remove(hide) index from array in PHP. Using http_build_query
问题 How to pass an array as a url parameter ? I'm using http_build_query() , array_shift() and urldecode() . I have this array: $array = array( 'phone' => array('ios', 'android', 'windows') ); When i use http_build_query and urldecode will return: phone[0]=ios&phone[1]=android&phone[2]=windows When i use array_shift will return: 0=ios&1=android&2=windows I want to this: test.php?phone=ios&phone=android&phone=windows Please help me. How to remove(hide) index from array. Thanks in advance. 回答1: