有没有其他方法可以在php中打印40点?
我心里有这个想法,但我认为这是错误的..也许有这样的方法。
<?php print(".",40); ?>
可以这样做吗?不使用循环?
是的 !使用str_repeat功能:
echo str_repeat('.', 40);