2 jabber answered Jul 19 '21 00:00 by fopen() function , below code will be used for standard output (stdout) $fp=fopen('php://stdout','w') fwrite($fp,'hello world'); Edit Answer