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