<?php $domain = "somesite.co.uk";$domain_solo = explode(".", $domain)[0];print($domain_solo);
Standard input is empty
somesite
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!