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

Can a super () and this () keywords be in same constructor?

908


What are the php functions?

1021


What are string functions?

944


How to read one character from a file?

1103


What is a base url?

931


What is php mainly used for?

985


What is variable declaration?

942


Which function parses an English textual date or time into Unix timestamp in PHP.

1004


what does this symbol mean in php?

1149


Explain how you can update memcached when you make changes to php?

1143


What is $_ get and $_ post in php?

1064


Do you know what is the use of rand() in php?

983


Explain php explode() function.

1043


How to find the position of the first occurrence of a substring in a string?

1013


How does api connect to database?

1070