Shortens an URL
It removes http:// or https:// and uses str::short afterwards
static public short ( string $url, integer $chars = false, boolean $base = false, string $rep = '…' ) : string | ||
$url | string | The URL to be shortened |
$chars | integer | The final number of characters the URL should have |
$base | boolean | True: only take the base of the URL. |
$rep | string | The element, which should be added if the string is too long. Ellipsis is the default. |
리턴 | string | The shortened URL |