PHP脚本在蜂窝连接的输出末尾有额外的0


PHP script has extra 0 at the end of the output on a cellular connection

我有一个非常简单的PHP脚本如下:

<?php
    echo "$$";
?>

在wifi或有线连接下,输出正常,如下所示:

$$

但在我的蜂窝连接(这是LTE AT&T)上,输出是:

$$0

输出中的零是怎么回事?

这个问题似乎只发生在at&t网络上,我试过在Verizon网络上,它是工作的。

添加这行代码解决了这个问题:

header('Content-Type: text/plain; charset=utf-8');