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
Is php fully object oriented?
Explain PHP looping?
What is difference between get and post in php?
Write a program in php to check whether a number is prime or not?
Is null function in php?
Explain about require and include function?
Can constructor be private in php?
What are encryption functions in php?
Do you know what does $globals means?
What is the difference between pop3 IMAP and MAPI?
What is a php web application?
Why json is used in php?
What are the advantages of indexes?
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
How to join multiple strings stored in an array into a single string?