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 is sticky form in php?
What is the difference between core php and php?
What are psrs?
Is php the same as html?
What distinguishes php from something like client side java script?
How can you retrieve a cookie value?
How do I check if a given variable is empty?
What are the advantages and disadvantages of cascade style sheets?
Is false empty php?
How do you destroy a particular or all Sessions?
What is good average session duration?
Is PHP an open source software?
Tell me how can we display information of a variable and readable by human with php?
How long is a php session valid?
Can we use include ("xyz.php") two times in a php page "index.php"?