Location: PHPKode > scripts > Name Extractor > name-extractor-master/example-2.php
<?php

// Extract name from batch (array) of email addresses

require dirname(__FILE__).'/class.name-extractor.php';

$cmname = new name_extractor();

$emails = array(
	'hide@address.com',
	'hide@address.com',
	'hide@address.com',
	'Steve Jobs<hide@address.com>'
	)

foreach ($emails as $val) {
	echo $cmname->extract_name($val);
}


?>
Return current item: Name Extractor