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
Can we extend two classes in php?
What is php namespace?
What are computer variables?
What is a comment in php?
How to assigning a new character in a string using php?
What is htmlentities function in php?
What is mysql_fetch_array?
What are string functions?
Can we use get instead of post?
What is the definition of a session?
What is the difference between include and require?
Can php run without server?
What is include in php?
What is the difference between client-side and server-side programming?
How many types of php frameworks are there?