<?php $email = 'abc@gmail.com'; if(preg_match('/^[^\@]+/', $email, $matches)) { $email_start = $matches[0]; echo $email_start; }
You have javascript disabled. You will not be able to edit any code.