CakeFest 2024: The Official CakePHP Conference

SplFileInfo::getFileInfo

(PHP 5 >= 5.1.2, PHP 7, PHP 8)

SplFileInfo::getFileInfoファイルの SplFileInfo オブジェクトを取得する

説明

public SplFileInfo::getFileInfo(?string $class = null): SplFileInfo

このメソッドは、参照先のファイルの SplFileInfo オブジェクトを取得します。

パラメータ

class

使用したい SplFileInfo 派生クラスの名前。

戻り値

そのファイル用に作成した SplFileInfo オブジェクトを返します。

変更履歴

バージョン 説明
8.0.0 class は、nullable になりました。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top