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
"http://info@abc.com" using regular expression of PHP

Answer Posted / navneet singh

$url = "http://info@abc.com"
$domain = strstr($url,"@");
echo $domain

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what are the functions to be used to get the image's properties (size, width and height)?

1041


Define anonymous classes in php7?

1052


Explain me what is x+ mode in fopen() used for?

1016


How can you execute php script from the command line?

1012


What is the difference between $var and $$var?

1063


What are constructor and destructor in PHP?

1111


What is composer install?

1058


Explain about a search-friendly site looks like?

864


How to get a total number of elements used in the array?

994


When is a conditional statement ended with an endif?

952


What is mysqli php?

1018


What is an array in php?

1147


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable

1927


What is the meaning of die in php?

986


What is the Default syntax used in PHP?

1112