<? $mail = "some_name@somedomain.com";echo substr($mail, 0, strpos($mail, '@') ); list($name, $domain) = explode('@', $mail);echo $name; ?>
Standard input is empty
some_namesome_name
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!