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

What is the importance of parser in php?

1221


Does PHP 5 support exceptions? State Whether True or False?

1133


What is interface? Why it is used?

1045


What is the php function that removes the first element of the array and returns it?

979


Explain what is the static variable in function useful for?

963


How long should a session last?

973


Write a program to display a table of any given number?

949


How do you define a constant in php?

1055


What does $_server mean?

1010


How can php and javascript interact?

1300


What is the advantage of runtime polymorphism?

945


Does php need apache?

942


How to download files from an external server with code in php?

894


How to genrate report in wordpress cms

2327


Difference between get and post method.

1012