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
What's the difference between accessing a class method via -> and via ::?
How to call php function from javascript using ajax?
What are the advantages of triggers in php?
What is PHP? Who is the father or inventor of PHP?
What is http get and post?
Which function(s) in PHP computes the difference of arrays?
Are parent constructors called implicitly inside a class constructor?
What is properties of class?
When do sessions end?
Where is session value stored?
What is super keyword in c++?
How to block direct directory access in PHP?
Is nan in javascript?
Is php deprecated?
What is the delimiter default in PHP?