| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Total: 238 | All time: 8,055 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
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| / | src |
| File | Role | Description |
|---|---|---|
| |
Aux. | Auxiliary script |
| |
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. |
| 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.