How to extract all email addresses from string in php?
In this post, I will give you simple example how to get email addresses from string content in php.
1. Code:
2. Example:
Input:
String: 'This email is soltuts@gmail.com and company email is soltuts@yahoo.com'
Output:
Array
(
[0] => soltuts@gmail.com
[1] => soltuts@yahoo.com
)