$domain_parts = explode('.', preg_replace('/\s+/', '', $_GET['domain']));
$sld = $domain_parts[0];
I am wanting to do the functionality of lines 1 and 2 into 1 line of code.
An example of what $_GET['domain'] provides is google.com
What is the cleanest way to do this in one line.
explode(...)[0].