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 the interface in php?

993


What do you mean by core php?

909


how to track user logged out or not? when a user is idle?

875


Is empty in php?

929


What should be the length of variable for SHA256?

929


Which is better php or nodejs?

916


Which is true about the singleton design pattern?

899


What are computer variables?

902


How check variable is set or not in php?

832


Is php easier than javascript?

954


How to add comments in php?

965


How to strip whitespace (or other characters) from the beginning and end of a string?

845


Is php used anymore?

935


How to replace a substring in a given string in php?

996


What is use of preg_replace in php?

1016