Пример #1
0
function fun1()
{
    $objHttpUtil = new HttpUtil();
    $result = $objHttpUtil->getHostFromHttpUrl('http://127.0.0.1/index.php');
    echo $result;
}