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's the difference between __sleep and __wakeup?
What is the use of php and mysql?
What is the difference between the functions strstr() and stristr()?
What are differences between PECL and PEAR?
What is return in php function?
What are the differences between mysqli_connect and mysqli_pconnect?
Explain me is multiple inheritance supported in php?
Which programming language does php resemble to?
Which array function checks if the particular key exists in the array?
my english is not too good then what we apply for a php programer post
When do sessions end?
Can I include php in javascript?
Why constructor is not overridden?
Which is true about the singleton design pattern?
How many data types are used by php?