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

Does php 7 support mysql?

554


What php framework does wordpress use?

535


What are include() and require() functions?

511


What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

525


Why is overriding runtime?

568






What is interface? Why it is used?

532


How check field is empty or not in php?

533


What are some new features introduced in php7?

8368


How to insert a line break in php string?

540


What is meant by variable variables in php?

524


Why session is required?

510


Please explain is it possible to use com component in php?

547


Are objects passed by value or by reference?

543


How to create a text file in PHP?

611


What is the difference between for and foreach loop in php?

618