Method: url::short

Shortens an URL
It removes http:// or https:// and uses str::short afterwards

Info

Syntax

url::short($url, $chars=false, $base=false, $rep='…')

Parameters

Return (string)

The shortened URL

Example


echo url::short('http://veryveryverylongurl.com', 30);
// output: veryveryverylongurl.com