PHP Classes


Recommend this page to a friend!
  Classes of Peter Kahl  >  Extract Name from Email Address  >  >  Download  
Role: Documentation
Content type: text/plain
Description: Readme
Class: Extract Name from Email Address
Extract person name from e-mail address header
Author: By
Last change: Namespace
Date: 5 years ago
Size: 777 bytes


Class file image Download
# Name From Email String
Extracts person's real name from an email (or any) string.

## Usage

use peterkahl\nameFromString\nameFromString;

$email = 'johnbutterworth@genius.whatever';

echo nameFromString::getName($email); # John Butterworth


## Dictionary
This class depends on a dictionary of names.

While it is good to have large dictionary of all possible strings (names), having the dictionary too large may cause erroneous results. Remember, you can never expect a precise result from this class; in most cases, the results are quite precise.

For your convenience, extended version of the dictionary is provided. You may, also, create your own dictionary, especially if the one provided doesn't contain the names that are common in your geographical area.
For more information send a message to info at phpclasses dot org.