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 use of "enctype" attribute in a html form?

1038


How to redirect https to http url through .htaccess?

962


What is the difference between characters 34 and x34?

1024


What are the steps for the payment gateway processing?

1008


How to check a key exist in an array?

1091


What is the difference between null and empty?

1022


In how many ways we can retrieve the data in the result set of mysql using php?

946


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

985


What is php session_start() and session_destroy() function?

1051


How to get the value of current session id?

966


Which is better python or php?

997


Do I need apache for php?

1080


Do you know how to delete a file from the system?

1020


Which php framework is in demand?

909


Is php case sensitive?

928