|
SplFileInfo::openFile(PHP 5 >= 5.1.2) SplFileInfo::openFile — Gets an SplFileObject object for the file Описание
public SplFileObject SplFileInfo::openFile
([ string $open_mode = r
[, bool $use_include_path = false
[, resource $context = NULL
]]] )
Creates an SplFileObject object of the file. This is useful because SplFileObject contains additional methods for manipulating the file whereas SplFileInfo is only useful for gaining information, like whether the file is writable. Список параметров
Возвращаемые значенияThe opened file as an SplFileObject object. ОшибкиA RuntimeException if the file cannot be opened (e.g. insufficient access rights). Примеры
Пример #1 SplFileInfo::openFile() example
<?php Смотрите также
|
|