12 lines
165 B
PHP
12 lines
165 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Utils;
|
||
|
|
||
|
class Domains {
|
||
|
|
||
|
static function getDomain($url) {
|
||
|
$sourceUrl = parse_url($url);
|
||
|
return $sourceUrl['host'];
|
||
|
}
|
||
|
}
|