【发布时间】:2011-04-01 18:53:44
【问题描述】:
我有一个通过命令行运行的 php 脚本,例如
php file.php
在那个文件中我有一个类似的打印语句
print "<br>Saved the url: {$url} to :{$destination}";
我认为 br 会在另一个下方将其共振峰 1,但是当我运行脚本时,我得到了这种很难阅读的格式
<br>Saved the url: http://example.com/a.mp3 to :/usr/recordings/3e/1555141317-2349577.mp3<br>Saved the url: http://example.com/b.mp3 to :/usr/recordings
所以格式很难在控制台中阅读。有没有办法重组我的打印以得到这样的输出
Saved the url: http://example.com/a.mp3 to :/usr/recordings/3e/1555141317-dadfdasffa.mp3
Saved the url: http://example.com/b.mp3 to :/usr/recordings/3c/1555141317-fddfd.mp3
Saved the url: http://example.com/c.mp3 to :/usr/recordings/3f/1555141317-ffdfd.mp3
【问题讨论】: