fork download
  1. <?php
  2.  
  3. $domain = "somesite.co.uk";
  4. $domain_solo = explode(".", $domain)[0];
  5. print($domain_solo);
Success #stdin #stdout 0.02s 24336KB
stdin
Standard input is empty
stdout
somesite