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 / nitesh kumar

you can use explode funciton

echo $site_array=end(explode("@","http://info@abc.com"));

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static method php?

994


Why do we use namespace in php?

926


How to list all values of submitted fields?

930


How to turn on the session support in php?

964


Explain mail function in PHP with syntax?

997


Is php coding easy?

946


What is warning – “cannot modify header information – headers already sent”?

1061


What is an operator in php?

1044


What is php dependency injection?

918


What is pdo classes?

1087


Is php easier than node?

926


What is an example of a variable?

1006


Where is session id stored?

957


where do we use htaccess?

985


What does pear stand for?

938