How can we extract string 'techinterviews.com' from a string
'http://www.techinterviews.com' using regular expression in PHP?
Answer Posted / rajeev raj karn
$url="http://www.techinterviews.com";
$url_part=split("w{1,3}[\.]",$url);
echo $url_part[1];
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to check your php installation?
What is the correct and the most two common way to start and finish a php block of code?
How do you find the length of a string in php?
What is abstract class php?
What is php routing?
What is return in php function?
How do you count numbers in php?
What is the empty function?
Is php a low level language?
What is str_replace()?
Which operator is used to combine string values in php?
What does $_ post mean in php?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Does wordpress still use php?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?