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

Why do we use csrf token?

995


What are the two main string operators?

1099


What is csrf validation?

1146


How can we increase execution time of a php script?

993


How to connect to mysql from a php script?

1106


What is the current stable version of php? What advance thing in php7?

1053


What is PHP's configuration file called?

1228


What is printf in php?

1018


Which function gives us the number of affected entries by a query?

982


How to retrieve values out of an array?

1096


What is the apache?

991


Explain setcookie() function in php?

1069


How does php server work?

1076


How can we change the value of a constant?

1038


How can we check the value of a given variable is a number?

1130