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 'techinterviews.com' from a string
'http://www.techinterviews.com' using regular expression in PHP?

Answer Posted / brett

echo str_ireplace('http://www.','',$url);

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is wordpress a php framework?

1025


How do you create an array in php?

953


What is Type hinting in PHP?

1085


What is data abstraction in php?

991


What is prepared statement in php?

1013


How to uploaded files to a table?

943


How to find the index of an element in an array php?

929


Can we use php variable in javascript?

970


Is not null in php?

897


What does $_files means?

964


When do you use define() and when do you use const. What are the main differences between those two?

998


What is curl php?

961


How failures in execution are handled with include() and require() functions?

975


What is uri routing?

952


Explain what does the unset() function means?

1051