Method: f::dirname

Just an alternative for dirname() to stay consistent

Info

Syntax

f::dirname($file=__FILE__)

Parameters

Return (string)

Example


$dirname = f::dirname('/var/www/test.txt');
// dirname is /var/www