Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP中的STDOUT和php://STDOUT有什么区别?
fwrite(STDOUT, ...);
对比
$StdOut = fopen('php://stdout', 'w'); fwrite($StdOut, ...);
前者是文件描述符 1,第二个是新 FD(例如 3)中 FD1 的副本。
STDOUT仅在 CLI sapi 中可用
STDOUT