- print_r: documentation ( source)
- parse_url: documentation ( source)
<?php
$sites = array('naughtyappetite.com',);
$url = "https://m.naughtyappetite.com/oth.php?dynamicpage=all_1cm_universal_light_n&ver=1";
$url = parse_url($url, PHP_URL_HOST);
print_r($url,1);