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

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

this code print the string as abc.com

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does php 7 support multiple inheritance?

509


How can I display text with a php script?

474


What is an anti csrf token?

496


What is instantiation?

1738


What are the special characters you need to escape in double-quoted stings?

535






Can you use both this () and super () in a constructor?

531


How to uploaded files to a table?

557


Tell me how comparison of objects is done in php5?

511


Do you know what are traits?

528


How send email in php?

529


How do you check if an arraylist is empty?

508


How easy is php?

522


Explain the difference between php4 and php5.

548


Starting or restarting a computer is called

609


Is php front end or back end?

505