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

Tell me what does the scope of variables means?

695


Can we override magic methods in php?

743


Why php language is used?

712


What is multidimensional array in php?

739


What is mysql_real_escape_string used for?

744


Which software is used to run php programs?

708


What is the use of php and mysql?

740


What is the phpstorm?

733


Give the case where we can use get and we can use post methods?

760


What are the php functions?

740


Is php a backend?

719


Will php die?

697


What is pdo classes?

766


What is session management php?

760


How to read one character from a file?

782