Skip to content

Commit

Permalink
Corrected stream_get_contents() example in README
Browse files Browse the repository at this point in the history
Found this while investigating #2.
  • Loading branch information
elazar committed Feb 21, 2022
1 parent 06627d6 commit 0f05e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ file_put_contents('mem://foo/bar', 'bay');

$contents = file_get_contents('mem://foo/bar');
// or
$contents = stream_get_contents('mem://foo/bar');
$contents = stream_get_contents(fopen('mem://foo/bar', 'r'));

if (file_exists('mem://foo/bar')) {
rename('mem://foo/bar', 'mem://foo/baz');
Expand Down

0 comments on commit 0f05e9b

Please sign in to comment.