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
How to redirect https to http url and vice versa in .htaccess?
What is composer used for?
What is beforeRender() used?
Explain the difference between require() and require_once()?
Why are sessions used?
Tell me what's the difference between include and require?
Tell me what is htaccess?
How can a cross-site scripting attack be prevented by php?
How many types of array are there in php?
How can MYSQL functions be available with PHP?
What is the role of the .htaccess file in php?
What are encryption functions in php?
What are session variables in php?
How do you end a function in python?
Is key in array php?