Commit db7bb45f authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Add fpassthru example

parent d0c29112
Pipeline #387060292 passed with stages
in 3 minutes and 25 seconds
......@@ -55,6 +55,13 @@ Put PNG to a stream:
stream_monster($stream, 'email@example.com', 150);
fclose($stream);
// more efficient output to browser
$stream = fopen('php://temp', 'r+');
stream_monster($stream, 'email@example.com', 150);
rewind($stream);
fpassthru($stream);
fclose($stream);
Export GD object:
.. code-block:: php
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment