filenameという名前のファイルまたはシンボリックリンクの情報を得ます。 この関数の動作はstat()関数と同じですが、 パラメータfilenameがシンボリックリンクで あった場合に、シンボリック先のファイルのステータスではなく、 シンボリックリンクのステータスが返されるところが異なります。
次の要素を有するファイル情報の配列を返します。
device
inode
inode protection mode
number of links
user id of owner
group id owner
device type if inode device *
size in bytes
time of last access
time of last modification
time of last change
blocksize for filesystem I/O *
number of blocks allocated
この関数の結果はキャッシュされます。詳細は、 clearstatcache()を参照下さい。