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

How is it possible to know the number of rows returned in the result set?

552


How do I update php?

580


Does php have a future?

514


Explain what are the two main string operators?

522


which will print out the php call stack?

590






Which function would you use to determine the length of a string in php?

606


What does $_cookie means?

569


What is the use of friend function in php?

540


What percentage of websites use php?

508


Can I use php in html?

561


Can I learn php without knowing c?

561


How will you calculate days between two dates in PHP?

542


What is the use of inner join in mysql?

541


explain php variable length argument function.

584


Why is node js better than php?

613