SplFileInfo::getCTime

(PHP 5 >= 5.1.2, PHP 7)
Gets the inode change time
public int SplFileInfo::getCTime ( void )

Returns the inode change time for the file. The time returned is a Unix timestamp.

Returns:

The last change time, in a Unix timestamp.

Exception:

Throws RunTimeException on error.

Examples:
SplFileInfo::getCTime() example
<?php
$info = new SplFileInfo(__FILE__);
echo 'Last changed at ' . date('g:i a', $info->getCTime());
?>

The above example will output something similar to:

Last changed at 1:49 pm
See also:

filectime() -

doc_php
2016-02-24 16:20:12
Comments
Leave a Comment

Please login to continue.