php stat() function


  Translation results:

UK [stæt] US [stæt]

n.Star (unit of radioactive intensity, equal to 3.64×10-7 Curie)

php stat() functionsyntax

Function: Return information about the file.

Syntax: stat(file)

Parameters:

Parameter Description
file Required. Specifies the documents to be checked.

Description: Get the statistical information of the file specified by file. If file is a symbolic link, the statistics are about the connected file itself, not the symbolic link. If an error occurs, stat() returns false and issues a warning.

php stat() functionexample

<?php
$file = stat("./test.txt");
print_r($file);
?>

Home

Videos

Q&A