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 use session in php?

553


How can we access the data sent through the url with the post method?

509


Explain the difference between urlencode and urldecode?

522


Does wordpress run on php 7?

515


What is the use of Php variables?

593






How to protect special characters in query string?

536


Explain about PHP filter and why it should be used?

559


What is form submission?

548


What is __ construct in php?

543


How do you remove duplicates from an array?

662


Is array function in php?

535


What is constructors and destructors?

540


In php, how to redirect from one page to another page?

517


What are hooks in php?

529


Tell me in php, objects are they passed by value or by reference?

539