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 final class and final method in php?

1106


What is mvc in php?

1056


What is the actually used php version?

1179


How do I run a php script?

1227


What are php magic quotes?

973


/temp is a type of filesystem directory. State Whether True or False?

1063


What the limitation of header() function in php?

1016


Explain me how to include a file to a php page?

1027


How are variables declared in php?

1051


Why does php start with variables?

1056


How is session id stored in browser?

1057


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

981


What does $this do in php?

1019


Is it more secure to use cookies to trfer session ids?

1053


What is the use of $_request variable?

1068