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 variable cost example?

1043


What is memcache?

969


What is put method in php?

1003


What exactly is PHP?

1025


Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

2125


What is inheritance in php?

1061


Tell me how can we define a variable accessible in functions of a php script?

950


What is the Pipe Symbol represented?

1098


Is php secure?

978


What is htaccess? Why do we use this and where?

989


Does browser understand php?

949


What is the difference between null and empty?

1029


What is the difference between include and require?

1008


Explain about the connective abilities of the PHP?

1031


Why should I learn php?

1068