method dirFromUrl documentation in bbn\Ide\Directories

Returns the dir's name from an URL

function($url) { foreach ( $this->dirs() as $i => $d ){ if ( (strpos($url, $i) === 0) && (\strlen($i) > \strlen($dir) ) ){ $dir = $i; break; } } return $dir; }

Returns the dir's name from an URL 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.