filemtime関数を使う。
なお、日本語ファイル名だとエラー。
出力
サンプルファイル
なお、日本語ファイル名だとエラー。
$d1 = filemtime('sample/kuroba.png'); $d1=date("Y/m/d H:i:s",$d1);
出力
2021/01/04 14:54:39
サンプルファイル
