How to split email address in username and domain in php?


function SplitEmailAddress($email){
      $pieces = explode(“@”, $email);
      $arr[‘user’]=$pieces[0];
       $arr[‘domain’]=$pieces[1];
   return $arr;
  }
 
  SplitEmailAddress(“arun.tiwari@laitkor.com”);

Advertisements

One thought on “How to split email address in username and domain in php?

  1. Article writing is also a excitement, if you be familiar with then you can
    write otherwise it is complex to write.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s