PHP fileinode() function

Definition and usage

fileinode() function returns the inode number of the file.

If successful, returns the inode number of the specified file. If failed, returns false.

Syntax

fileinode(filename)
Parameter Description
filename Required. Specifies the file to be checked.

Tips and comments

Tip:The result of this function will be cached. Please use clearstatcache() to clear the cache.

Example

<?php
echo fileinode("test.txt");
?>