Tags
Asked 2025 years ago
30 Nov -0001
Views 173
Gwen

Gwen posted

What is stdout PHP ?

What is stdout PHP ?
shyam

shyam
answered Jul 19 '21 00:00

stdout is used to Write to standard output

you can pass the php://stdout instead of filename in fopen

$fp=fopen('php://stdout','w')


use fwrite to write now to standard output

fwrite($fp,'hello world');
Post Answer