stdin / stdout / stderr
最后更新于:2022-04-02 02:31:36
[TOC]
## php://stdout
```
$fp = fopen("php://stdout",'r');
fwrite($fp,"world\n");
```
## php://stderr
```
$fp = fopen("php://stderr",'r');
fwrite($fp,"hello\n");
```
## php://stdint
```
$fp = fopen("php://stdin",'w');
var_dump(fread($fp,10));
```
';