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 / harsh

$string1="info@abc.com";
$string2=split("@",$string1);
print_r($string2);

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 the scope of a variable defined outside a function?

744


What is php and how do you use it?

747


What are different types of errors available in Php?

715


How does session work in php?

755


for image work which library?

752


What is the current php version?

793


What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

758


What is the meaning of a final class and a final method?

791


What is constructors and destructors?

726


What are the advantages of indexes in php?

791


Tell me what is the difference between exception::getmessage and exception::getline?

709


Is php front end?

694


What is the use of array_search() in php?

728


What is the use of Php variables?

814


Is facebook still in php?

688