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 prepare in php?
Explain how to execute a php script using command line.
What is PECL?
Can you pass an array into a function?
What is Type hinting in PHP?
What types of Data Can Be Used as Array Keys?
What are the 3 types of sessions?
How we get browser details of clients machine?
Is array empty php?
Write a program in php to print a table of a number?
What are php data types?
Does wordpress run on php 7?
Explain Type juggling?
What is the difference between get and post method in php?
What is difference between mysql_fetch_array and mysql_fetch_assoc?