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 ?    23 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is php code written?

519


Which is useful for method overloading?

627


Is php better than python?

557


Applications written to provide a GUI shell for Unix and Linux are called

580


What is the goto statement useful for?

556






How would you determine the size of a file in php?

601


How to find the index of an element in an array php?

527


Where are sessions stored php?

526


Is php session id unique?

533


What is putenv?

568


Why do we use php?

541


Is php a strongly typed language?

572


How do you destroy a particular or all Sessions?

585


What is difference Between PHP 5 and 7?

521


Does php have block scope?

526