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
Tell me what are the functions to be used to get the image's properties (size, width and height)?
Define anonymous classes in php7?
Explain me what is x+ mode in fopen() used for?
How can you execute php script from the command line?
What is the difference between $var and $$var?
What are constructor and destructor in PHP?
What is composer install?
Explain about a search-friendly site looks like?
How to get a total number of elements used in the array?
When is a conditional statement ended with an endif?
What is mysqli php?
What is an array in php?
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
What is the meaning of die in php?
What is the Default syntax used in PHP?