Function shorten
Shortens a string at a specified position.
Parameters summary
string |
$str |
The string to shorten. |
integer |
$length = 32 |
The desired length of the string. |
float |
$position = .75 |
Position at which characters can be removed. |
boolean |
& $shortened = null |
true if the string was shortened, false otherwise.
|
Return value summary
string
|