- print_r: documentation ( source)
- preg_match_all: documentation ( source)
- preg_quote: documentation ( source)
<?php
echo preg_quote('(?:"?([^"]*)"?\s)?(?:<?(.+@[^>]+)>?)');
preg_match_all('(?:"?([^"]*)"?\s)?(?:<?(.+@[^>]+)>?)', 'Eric Peterson <foo@example.com>', $matches);
print_r($matches);