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

Tell me how can we get the error when there is a problem to upload a file?

993


How to read and display a HTML source from the website url?

969


What are the features of php 7?

1045


What is htaccess in php?

1267


What does php do?

1009


What are the new features in php 7?

992


Is it possible to use com component in php?

971


What is the current stable version of php? What advance thing in php7?

1009


What is a php array?

994


What is php pathinfo?

1076


Explain the changes in php versions?

970


What is instantiation?

2207


What is call by reference in php?

1015


Explain Whitespace Characters?

1041


what is CURL?

1017