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

How can you execute php script from the command line?

1001


What is Mcrypt used for?

988


How many ways to include variables in double-quoted strings in php?

1052


Why should I learn php?

1048


How many types of inheritances used in php and how we achieve it.

950


Explain the casts allowed in PHP?

1021


What is the Default syntax used in PHP?

1099


How can we upload a file in php?

1006


How break and continue while loop in php?

937


Is age nominal or ordinal?

937


What is a trait in php?

1004


Explain the difference between isset() and empty()?

949


What is the use of explode() function?

1056


Is php fully object oriented?

915


Tell us why did you choose this particular career path?

941