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
What is the meaning of "enctype= multipart/form-data" ?
How to download and install php on windows?
Is php a backend?
How to track no of user logged in?
How to pass variables by references?
Why is used in php?
Is php harder than javascript?
Can age be a variable?
Does exist in php?
What is a closure in php?
how to use http headers inside php? Write the statement through which it can be added?
How check submit button is clicked in php?
What is magic quotes?
Explain what does the unset() function means?
What is die in php?