Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class XYZ {
- // ...
- public static function openForRead(string $id): ?resouce
- {
- $resource = @fopen($id, 'r');
- return $resource ? $resource : null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement