Method: str::shorturl

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

Info

Syntax

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

Parameters

Return (string)

The shortened URL

Example


echo str::shorturl('http://veryveryverylongurl.com', 30);
// output: veryveryverylongurl.com