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

What are html entities?

719


Can php variables have numbers?

780


How to upload file in php?

763


What are the advantages of stored procedures in php?

712


How to fix "headers already sent" error in php

748


What is the use of namespace in php?

744


What are php data types?

730


What is constructor and destructor?

738


Tell me what is the use of "ksort" in php?

763


How to get length of an array in PHP?

766


What is framework in php for beginners?

730


How to download and install php for windows?

787


What is filter_var?

713


What is echo in html?

693


Tell me what is the use of isset() in php?

800