Method: f::dirname
Just an alternative for dirname() to stay consistent
Info
Syntax
f::dirname($file=__FILE__)
Parameters
- $file (string) The path
Return (string)
Example
$dirname = f::dirname('/var/www/test.txt');
// dirname is /var/www