Get return value from stat function
$filename = 'file.txt';
($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime,
$mtime, $ctime, $blksize, $blocks) = stat($filename);
print "$filename is $size bytes long.";
Related examples in the same category