dongtaogu8510 2014-08-23 22:58
浏览 61
已采纳

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

I have a very simple PHP script as follows:

<?php

    echo "$$";

?>

On wifi or wired connections, the output is normal, as follows:

$$

But on my cellular connection (which is LTE on AT&T), the output is:

$$0

What's up with the zero in the output?

The issue only seems to happen on AT&T network, I tried on Verizon network and it was working.

  • 写回答

1条回答 默认 最新

  • douhua1890 2014-08-24 07:09
    关注

    Adding this line of code solved the problem:

    header('Content-Type: text/plain; charset=utf-8');
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?