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 / sameer joshi

You can do like $site_array=explod("@","http://info@abc.com");
$site_addr=$sitr_array[1];

$site_addr will get the value as abc.com

Is This Answer Correct ?    13 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain object-oriented methodology in php?

928


How would you determine the size of a file in php?

994


Is php strongly typed?

996


What does == mean in php?

917


Is php a mvc?

889


Explain what does the expression exception::__tostring means?

817


When sessions ends?

905


Php program to generate fibonacci series?

979


What does session start do in php?

912


Tell me what type of operation is needed when passing values through a form or an url?

900


What is use of header() function in php?

979


Why namespace is used in php?

941


What are arguments in php?

962


What is isset and unset in php?

983


Explain Type juggling?

920