How to Generate URL-encoded Query String using PHP
This tutorial tackles on how to generate url-encoded query string using PHP. You can build your query strings manually but there is a recommended way to build query string which is the use of PHP's http_build_query() function. This function will help you build url-encoded query string.