How can we extract string 'techinterviews.com' from a string
'http://www.techinterviews.com' using regular expression in PHP?
Answer Posted / sunil kumar
echo
strstr("http://www.techinterviews.com","techinterviews.com");
| Is This Answer Correct ? | 8 Yes | 9 No |
Post New Answer View All Answers
How to break a file path name into parts?
Explain me differences between get and post methods?
How many data types are used by php?
Why php script is not running in browser?
How to remove duplicate values from array using php?
How to count all the lines of code in a directory and sub folder?
Whether it is possible to share a single instance of a memcache between multiple php projects?
What is the integer?
What is the use of the function htmlentities?
Can constructor be private in php?
What is difference between session and cookie in PHP?
Where can I find php ini file?
What is php? Why it is used?
What is the purpose of basename() function in PHP?
How does php strcmp work?