- print_r: documentation ( source)
- parse_url: documentation ( source)
<?php
$urls = [
'https://mon.domaine.fr/le/chemin/vers/le/fichier.php?mes=1&demandes=2',
'ftps://login:password@domain.com/path/to/file.txt',
'http://www.example.com:80/forum/questions/?tag=networking&order=newest#top',
'/usr/bin/awk',
'http://localhost/index.html#uneID',
'tel:0780111111'
];
foreach ($urls as $url) {
print_r(parse_url($url));
}