PHP code example of phabloraylan / add-get-param-to-url
1. Go to this page and download the library: Download phabloraylan/add-get-param-to-url library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phabloraylan / add-get-param-to-url example snippets
use AddGetParamToUrl\URL;
$url = 'http://localhost';
$params = [
'name1' => 'value1',
'name2' => 'value2',
];
$r_url = URL::addGetParamToUrl($url, $params);
echo $r_url;