This article helps you to install XAMPP an open-source development environment on Ubuntu. XAMPP is an Apache distribution comes with MariaDB, PHP, and Perl. Just download and start the installer. It's that easy.
PHP has built in function http_build_query that can be used to prepare a query string from an array.
Instead of explicitly appending elements to string, this function comes handy, which takes cares of generating URL-encoded query string either from an associative or indexed array.