method parse documentation in bbn\Mvc\Router

Removes trailing slashes.

function(string $path) { while (strpos($path, '//') !== false){ $path = str_replace('//', '/', $path); } // case like my/dir/. if ((strlen($path) > 0) && (X::basename($path) === '.')) { $path = substr($path, 0, -1); } return $path ?: '.'; }

Removes trailing slashes. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.