<?php $url = 'www.example.com'; $domain = explode('.',str_replace(['http://','https://'],'',$url))[0]; var_dump($domain);
You have javascript disabled. You will not be able to edit any code.