+88 01797-506292

Post Date: July 17, 2017
Posted By: admin

Get all email addresses from a string as an array

$text = 'Ruchika < ruchika@example.com >';
    preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $text, $matches);
    print_r($matches[0]);

Leave a Reply

Your email address will not be published. Required fields are marked *