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

Is php easy language to learn?

1102


What are getters and setters and why are they important?

1082


How to replace a substring in a given string in php?

1111


What are new features in php 7?

1061


How do you call a constructor for a parent class?

948


What are the steps for the payment gateway processing?

1058


How to call javascript function in php on button click?

1022


What is ci framework in php?

1096


What is zend studio for?

1074


How to get number of elements in an array?

1050


How to track no of user logged in?

1058


Write a program in php to check whether a number is prime or not?

992


What are hooks in php?

996


What are computer variables?

982


How can you get the size of an image in PHP?

1052