Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can we extract string ‘abc.com ‘ from a string
info@abc.com" target="_blank">http://info@abc.com using
regular expression of php?

Answer Posted / simlu_irtt

$string1="info@abc.com";
$string2=split("@",$string1);
print_r($string2);

this code print the string as abc.com

Is This Answer Correct ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php fully object oriented?

881


Explain PHP looping?

972


What is difference between get and post in php?

1099


Write a program in php to check whether a number is prime or not?

916


Is null function in php?

985


Explain about require and include function?

941


Can constructor be private in php?

985


What are encryption functions in php?

1045


Do you know what does $globals means?

998


What is the difference between pop3 IMAP and MAPI?

1015


What is a php web application?

970


Why json is used in php?

954


What are the advantages of indexes?

874


Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

1105


How to join multiple strings stored in an array into a single string?

981