PHP Classes

PHP Parse Full Name: Parse person name and extract its components

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 150 All time: 9,063 This week: 425Up
Version License PHP version Categories
fullnameparse 2Freely Distributable3.0PHP 5, User Management, Parsers


This class can parse person name and extract its components.

It can take the full name of a person and extract its components like first name, middle name, last name, salutation and suffix.

The parsed name is returned as an associative array with entries for each found component.

Picture of Anthony Amolochitis
  Performance   Level  
Name: Anthony Amolochitis <contact>
Classes: 10 packages by
Country: United States United States
Age: 44
All time rank: 1138166 in United States United States
Week rank: 368 Up43 in United States United States Up


require 'ParseName.php';

$_REQUEST['fullname'] = urlencode( 'Janet Louise Miller-Cross Jr' ) ;
$FullNameParse = new FullNameParse( urldecode( $_REQUEST['fullname'] ) );
$ParsedNameArray = $FullNameParse->GetParsedName();

echo json_encode( $ParsedNameArray ) ;

echo '<br/>';

$FullNameParse->SetFullName('Mr. Anthony John Amolochitis Senior');
$ParsedNameArray = $FullNameParse->GetParsedName();

echo json_encode( $ParsedNameArray ) ;

  Files folder image Files  
File Role Description
Plain text file Example.php Example Example file
Plain text file ParseName.php Class Parse Full Names

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,063
This week:425Up