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 mean tnq
Tell us what does $_cookie means?
Tell me what is the use of "ksort" in php?
What is a class in php programing?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
Is uploaded file php?
What is a php session?
how to detect a mobile device using php
What is the difference between query and question?
What does $_files means?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
Tell me how is it possible to propagate a session id?
What is the string concatenation operator in php?
Where is session value stored php?
What is meant by pdo in php?