Use http_build_query to generate query string

When adding query data to my http requests, I used to url-encode all the parameters and combine them together as a single url-encoded string manually. Today I found a PHP function that just does the job perfectly. More details can be found here