ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] ## php://input ## php://output ### 实例1 ``` $fp = fopen('php://output', 'w'); fwrite($fp, "This is a test.\n"); // 等价于 echo "This is a test.\n"; ``` ### 使用 流处理对输出内容进行过滤 ``` $fp = fopen('php://output', 'w'); // 对流进行过滤 stream_filter_append($fp, 'string.toupper'); fwrite($fp, "This is a test.\n"); // THIS IS A TEST. ```