How can we extract string ‘abc.com ‘ from a string
info@abc.com" target="_blank">http://info@abc.com using
regular expression of php?

Answer Posted / supriya

$str1="info@abc.com";
$str1=explode("@",$str1);
print_r($str1);

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is reference variable php?

494


What are the method available in form submitting?

523


What are the different loops in php?

534


What is difference between base_url and site_url?

494


Declare a new variable in php equal to the number 3;

502






Is php harder than javascript?

428


What is difference between isset and empty in php?

527


Explain about a search-friendly site looks like?

483


How big is varchar max?

588


What is a php trait?

485


What is the use of php and mysql?

548


Tell me what is the difference between the functions strstr() and stristr()?

526


What language is php based on?

485


How many data types are there in php?

586


Do you know how to enable error reporting in php?

489