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
Which is incorrect with respect to separating php code and html?
How to remove html tags from data in php?
How do you count numbers in php?
What is form submission?
What is mvc php?
How can I find my php version?
What is the use of mysql_real_escape_string() function?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
Do you know what is php?
What is php resource type?
What is array and function?
How does cookies work in php?
What is php default argument?
What is the function file_get_contents() useful for?
What is the difference between rest and soap?