Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
50% | Total: 238 | All time: 8,054 This week: 48 |
Version | License | PHP version | Categories | |||
name-string-order 1.0.11 | Custom (specified... | 5 | PHP 5, Text processing, Artificial in... |
Attempts to order a person's name as 'First Last', 'First Middle Last', 'Last First', and extracts 'First', 'Last' and 'Middle'.
Romanized Chinese name:
use peterkahl\nameStringOrder\nameStringOrder;
$nameObj = new nameStringOrder('WANG jing-jing');
echo $nameObj->getFirstLast(); # Jing-Jing Wang
echo $nameObj->getLastFirst(); # Wang Jing-Jing
echo $nameObj->getFirst(); # Jing-Jing
echo $nameObj->getLast(); # Wang
Russian name:
use peterkahl\nameStringOrder\nameStringOrder;
$nameObj = new nameStringOrder('???????? ???????????? ?????');
echo $nameObj->getFirstLast(); # ???????? ?????
echo $nameObj->getLastFirst(); # ????? ????????
echo $nameObj->getFirstMiddleLast(); # ???????? ???????????? ?????
echo $nameObj->getFirst(); # ????????
echo $nameObj->getMiddle(); # ????????????
echo $nameObj->getLast(); # ?????
Chinese name:
use peterkahl\nameStringOrder\nameStringOrder;
$nameObj = new nameStringOrder('???');
echo $nameObj->getFirst(); # ??
echo $nameObj->getLast(); # ?
Latin character name:
use peterkahl\nameStringOrder\nameStringOrder;
$nameObj = new nameStringOrder('Curie Marie');
echo $nameObj->getFirstLast(); # Marie Curie
echo $nameObj->getLastFirst(); # Curie Marie
echo $nameObj->getFirst(); # Marie
echo $nameObj->getLast(); # Curie
Files (5) |
File | Role | Description | ||
---|---|---|---|---|
src (2 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (5) | / | src |
File | Role | Description |
---|---|---|
dictionary-first-names.php | Aux. | Auxiliary script |
nameStringOrder.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.