Mecha CMS

Path::N()

Convert file path to its name.

2.0.0 Static

Path::N(string $value, $x = false);

Example:

$A = Path::N('foo\bar\baz.qux');
$B = Path::N('foo\bar\baz.qux', true);

Result:

$A = 'baz';
$B = 'baz.qux';