abbreviate nameUtility Library
This function abbreviates names. The abbreviation contains the first letters of the first, all middle and
last names. Multiple letters will be included for following sequences:
Ch, Gh, Ll, Ph, Rh, Sch, Sh, Sp, St, Th, Zh
Under normal conditions, the 'Utility Library' is loaded automatically, so no 'include(...)' call is needed.
1
| No. | Type | Description |
|---|---|---|
| 1. input |
string | Name to abbreviate |
| Type | Description |
|---|---|
| string | Abbreviation |
echo( abbreviate name( "John Adams" ) );
echo( abbreviate name( "John F. Kennedy" ) );
echo( abbreviate name( "Ludwig van Beethoven" ) );
echo( abbreviate name( "Sherlock Holmes" ) );JA
JFK
LvB
ShH