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
How can you execute php script from the command line?
What is Mcrypt used for?
How many ways to include variables in double-quoted strings in php?
Why should I learn php?
How many types of inheritances used in php and how we achieve it.
Explain the casts allowed in PHP?
What is the Default syntax used in PHP?
How can we upload a file in php?
How break and continue while loop in php?
Is age nominal or ordinal?
What is a trait in php?
Explain the difference between isset() and empty()?
What is the use of explode() function?
Is php fully object oriented?
Tell us why did you choose this particular career path?