Get a stream resource from a SplFileInfo object
-
29-08-2022 - |
문제
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
?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow