1

I have to list directories by using scandir() function but result array should be sorted according to date and time of directory created.

Regards Deepak

4

4 に答える 4

0

必要な結果を配列に取得して並べ替えます...これを直接実行できる scandir オプションを知りません。

于 2009-10-14T07:21:35.593 に答える
0

scandir() ではできません。

これをチェック

于 2009-10-14T06:59:18.950 に答える
0

関数を使用することで問題を解決できますfilemtime($dirPath)

コードサンプル:

if (file_exists($dirPath)) {
    echo "last modified: " . date ("F d Y H:i:s.", filemtime($dirPath));
}
于 2009-10-14T07:10:34.497 に答える