The variable $siteroot
contains a string that looks like:
http://www.example.nl/folder/
To get the part http://www.example.nl/ you use:
{$siteroot|substr:0:22}
But i want to skip this part and return /folder/
The length of the folder is unknown.
{$siteroot|substr:22}
Should work
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With