Soshot/app/Utils/Domains.php

12 lines
165 B
PHP
Raw Normal View History

2023-06-21 11:42:36 +02:00
<?php
namespace App\Utils;
class Domains {
static function getDomain($url) {
$sourceUrl = parse_url($url);
return $sourceUrl['host'];
}
}