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

Write a program to find a string is palindrome or not?

707


What is the use of curl()?

833


What is the correct line to use within the php.ini file, to specify that 128mb would be the maximum amount of memory that a script may use?

778


What is the use of strip_tags() method?

726


Why die is used in php?

745


Tools used for drawing er diagrams?

741


Tell me what is mean by an associative array?

718


Are php session secure?

763


What are the features of php?

784


Which php function will attach one file to another?

736


What is csrf token and how it works?

725


How we can get the number of elements in an array?

8590


Do while loops php?

717


Explain setcookie() function in php?

755


How do I stop php artisan serve in windows?

696