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 / sathya

Use this coding

$variablename="http://info@abc.com";
$u=explode("@",$variablename);
$u2=$u[1];

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does php serialize work?

1020


How can we upload a file in php?

1007


Which php global variable is used for uploading a file?

1012


What function do we use to find length of string, and length of array?

946


What is needed to be able to use image function?

992


What are the functions of string?

984


What is difference between ksort() and usort() functions.

917


What is Type hinting in PHP?

1139


What is the main difference between php 4 and php 5?

970


What is the purpose of basename() function in PHP?

1027


What's the difference between using mysql_ functions and pdo?

1144


What's the output of the ucwords function in this example?

1030


What are escaping characters? Explain with an example?

943


What is a substring in php?

1056


What are the correct and the most two common way to start and finish a PHP block of code?

1052