Вопрос

I'm calling a method that expects a stream resource for a file, like this:

$obj->method(fopen($splFileInfo, 'r+'));

The $splFileInfo object is an instance of SplFileInfo.

Is there a way to get the stream resource of the $splFileInfo object without having to call fopen?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top