method cur documentation in bbn\File\Dir

If the directory's path starts with './' returns the path without './' else returns the complete path.

Example

\bbn\X::dump(\bbn\File\Dir::cur("./home/data/test/")); // (string) "home/data/test/" \bbn\X::dump(\bbn\File\Dir::cur("/home/data/test/")); // (string) "/home/data/test/" function(string $dir) { return strpos($dir, './') === 0 ? substr($dir, 2) : $dir; }

If the directory's path starts with './' returns the path without './' else returns the complete path. 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.