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 / nitesh kumar

you can use explode funciton

echo $site_array=end(explode("@","http://info@abc.com"));

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the encryption techniques in php?

954


Why php is used?

1045


How can I prevent sql-injection in php?

971


What is psr in php?

1001


Tell me how can you pass a variable by reference?

894


Explain what is the use of "echo" in php?

977


Explain mixed and callback functions?

1032


Tell me can the value of a constant change during the script's execution?

1150


Tell me what is use of in_array() function in php?

1024


Explain me what is the importance of "method" attribute in a html form?

885


What is difference between readonly and constant?

940


What are php strings?

923


What does $globals means?

869


Tell me how can we change the maximum size of the files to be uploaded?

928


What is null value in php?

977