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


Please Help Members By Posting Answers For Below Questions

What is mean tnq

1083


Tell us what does $_cookie means?

573


Tell me what is the use of "ksort" in php?

556


What is a class in php programing?

2005


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

539






Is uploaded file php?

541


What is a php session?

572


how to detect a mobile device using php

590


What is the difference between query and question?

520


What does $_files means?

514


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

560


Tell me how is it possible to propagate a session id?

603


What is the string concatenation operator in php?

524


Where is session value stored php?

538


What is meant by pdo in php?

552