PHP中有没有一个函数可以打印指定数量的空格?
下面是ASP的等效示例:
Dim txt
txt=Space(10)
document.write(txt)
Output:
" " 发布于 2011-11-29 17:48:45
是的,str_repeat是你想要的东西。
str_repeat
<?php
echo str_repeat("x", 10);
?>将输出
xxxxxxxxxxx发布于 2011-11-29 17:52:56
使用间隔的步骤
echo str_repeat(" ", 10);https://stackoverflow.com/questions/8308673
复制相似问题