Gen. partnerAlgotech

PHP function basename()

Returns filename component of path

|
September 11, 2019

Availability in PHP 4.0

Returns filename component of path

Parameters

Parameter Data type Default value Note
$path string not A path.
$suffix string null If the filename ends in suffix this will also be cut off.

Return values

string

the base name of the given path.

Other resources

Official basename documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.