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
What are html entities?
Can php variables have numbers?
How to upload file in php?
What are the advantages of stored procedures in php?
How to fix "headers already sent" error in php
What is the use of namespace in php?
What are php data types?
What is constructor and destructor?
Tell me what is the use of "ksort" in php?
How to get length of an array in PHP?
What is framework in php for beginners?
How to download and install php for windows?
What is filter_var?
What is echo in html?
Tell me what is the use of isset() in php?