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
Steps for the payment gateway processing?
What is static variable in php?
Is null empty php?
What is the difference between echo, print and printf()?
How to create a directory?
What is PHP? Who is the father or inventor of PHP?
Which php function will attach one file to another?
How to know user has read the email-php?
Is string php function?
How does firefox manage cookies?
How would you determine the size of a file in php?
Tell me what are the different types of errors in php?
Why do you need to filter out empty files?
What is isset in php form?
What is laravel php?