Gen. partnerAlgotech

PHP function is_file()

Tells whether the filename is a regular file

|
September 11, 2019

Availability in PHP 4.0

Tells whether the filename is a regular file

Parameters

Parameter Data type Default value Note
$filename string not Path to the file.

Return values

bool

true if the filename exists and is a regular file, false otherwise.

Other resources

Official is-file 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.