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

Is laravel frontend or backend?

956


What is the difference between a session and cookies?

955


What is a query in a database?

1023


Explain the difference between array_merge() and array_combine()?

1000


Which function will you use to create an array?

971


Is null empty php?

1038


Is php 5.6 secure?

995


Which function is used in php to search a particular value in an array?

914


Which methods should be used for sending an email using the variables $to, $subject, and $body?

1132


What is advanced php programming?

1029


What is php ci?

1002


What is php's mysqli extension?

1014


Explain how to run the interactive php shell from the command line interface?

1071


What is the difference between md5(), crc32() and sha1() crypto on php?

1060


Name and explain five of the PHP error constants?

955