How can we extract string 'techinterviews.com' from a string
'http://www.techinterviews.com' using regular expression in PHP?
Answer Posted / ram
$url = "http://www.techinterviews.com";
$splittedstring = explode ("www.",$url );
$str = $splittedstring[1];
echo $str ;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many types of array supported in php?
What is local variable in php?
What is the difference between abstract class and interface in php?
What are session variables in php?
Explain me what is the use of header() function in php?
Is php 5 still supported?
When sessions ends?
Does php 5 support exceptions?
Tell us what does $_cookie means?
How many data types are there in php?
Who created numbers?
Explain the different types of errors in php.
Write a program to upload a file in php?
Where can I learn php?
How to set cookies?