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
Is wordpress a php framework?
How do you create an array in php?
What is Type hinting in PHP?
What is data abstraction in php?
What is prepared statement in php?
How to uploaded files to a table?
How to find the index of an element in an array php?
Can we use php variable in javascript?
Is not null in php?
What does $_files means?
When do you use define() and when do you use const. What are the main differences between those two?
What is curl php?
How failures in execution are handled with include() and require() functions?
What is uri routing?
Explain what does the unset() function means?