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
Why do we use csrf token?
What are the two main string operators?
What is csrf validation?
How can we increase execution time of a php script?
How to connect to mysql from a php script?
What is the current stable version of php? What advance thing in php7?
What is PHP's configuration file called?
What is printf in php?
Which function gives us the number of affected entries by a query?
How to retrieve values out of an array?
What is the apache?
Explain setcookie() function in php?
How does php server work?
How can we change the value of a constant?
How can we check the value of a given variable is a number?