How can we extract string 'abc.com' from a string
"http://info@abc.com" using regular expression of PHP
Answer Posted / navneet singh
$url = "http://info@abc.com"
$domain = strstr($url,"@");
echo $domain
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
What is the importance of parser in php?
Does PHP 5 support exceptions? State Whether True or False?
What is interface? Why it is used?
What is the php function that removes the first element of the array and returns it?
Explain what is the static variable in function useful for?
How long should a session last?
Write a program to display a table of any given number?
How do you define a constant in php?
What does $_server mean?
How can php and javascript interact?
What is the advantage of runtime polymorphism?
Does php need apache?
How to download files from an external server with code in php?
How to genrate report in wordpress cms
Difference between get and post method.