We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5880f38 commit a880fe4Copy full SHA for a880fe4
components/var_dumper/advanced.rst
@@ -145,8 +145,7 @@ Another option for doing the same could be::
145
$output = fopen('php://memory', 'r+b');
146
147
$dumper->dump($cloner->cloneVar($variable), $output);
148
- rewind($output);
149
- $output = stream_get_contents($output);
+ $output = stream_get_contents($output, -1, 0);
150
151
// $output is now populated with the dump representation of $variable
152
0 commit comments