<?php$arr = array(1,2,3,4);echo http_build_query(array('arr'=>$arr));
Standard input is empty
arr%5B0%5D=1&arr%5B1%5D=2&arr%5B2%5D=3&arr%5B3%5D=4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!