PHP code example of onursimsek / unparse-url
1. Go to this page and download the library: Download onursimsek/unparse-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/ */
onursimsek / unparse-url example snippets
$parsedUrl = parse_url('https://github.com/onursimsek/unparse-url');
/*[
"scheme" => "https",
"host" => "github.com",
"path" => "/onursimsek/unparse-url",
]*/
echo new UnparseUrl\UnparseUrl($parsedUrl);
// https://github.com/onursimsek/unparse-url
$parsedUrl = [
'scheme' => 'https',
'host' => 'github.com',
'path' => '/onursimsek/unparse-url',
];
echo unparse_url($parsedUrl);
// https://github.com/onursimsek/unparse-url