PHP输出多个空格

$txt="      ";//输出多个空格
echo str_replace(chr(32),' ',$txt);

原文地址:https://www.cnblogs.com/lzhitian/p/2786248.html