0

如何echo在脚本运行期间通过 php 的命令进行换行以提供有意义的状态消息。

我尝试echo/n但无济于事,我必须使用空格来补偿这非常耗时。请帮忙。

4

1 回答 1

1

您应该使用 Artisan 输出命令:

$this->info('Display this on the screen');
...
$this->error('Something went wrong!');

你可以在 Laravel Docs 上阅读更多关于它的信息

于 2014-10-23T15:11:11.563 回答