Login   Register  
PHP Classes
elePHPant
Icontem

File: example-1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Peter Kahl  >  Extract Name from Email Address  >  example-1.php  >  Download  
File: example-1.php
Role: Example script
Content type: text/plain
Description: Process single address
Class: Extract Name from Email Address
Extract person name from e-mail address header
Author: By
Last change: Changed license to Apache License, Version 2.0.
Date: 5 days ago
Size: 300 bytes
 

Contents

Class file image Download
<?php

// Extract name/email from single email address header

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

$cmname = new name_extractor();

$email '<johnbutterworth@gmail.com>';

echo 
$cmname->extract_name($email);

echo 
'<br>'

echo $cmname->extract_addr($email);