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 / supriya
$str1="info@abc.com";
$str1=explode("@",$str1);
print_r($str1);
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain do you use composer? If yes, what benefits have you found in it?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
What is the use of count() function in php?
What is different types of visibility?
What is trim function in php?
How is session data stored?
How to calculate the difference between two dates using php?
What does explode do in php?
What is preg_match?
Whether it is possible to share a single instance of a memcache between multiple php projects?
Tell us what is the difference between session_unregister() and session_unset()?
What is the difference between explode () and split () functions in php?
How to concatenate two strings together in php?
What version of php do I have windows?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?