Php 终端中的百分号是多少?
当我在终端中运行以下命令时,我总是在末尾得到一个%符号Php 终端中的百分号是多少?,php,terminal,Php,Terminal,当我在终端中运行以下命令时,我总是在末尾得到一个%符号 %是什么意思 # 0014.php <?php echo "Hi there.\n"; echo "This is the second line."; ?> 如何执行脚本?只是php0014.php还是以其他方式?另外,您使用的是什么操作系统?phptest-它是什么?PHP不支持“\n”。如果您想使用新的一行,可以使用html br标记。@BuddhiEashwarage PHP支持\n。@SverriM.Olsen是吗?
%
是什么意思
# 0014.php
<?php
echo "Hi there.\n";
echo "This is the second line.";
?>
如何执行脚本?只是
php0014.php
还是以其他方式?另外,您使用的是什么操作系统?phptest
-它是什么?PHP不支持“\n”。如果您想使用新的一行,可以使用html br标记。@BuddhiEashwarage PHP支持\n
。@SverriM.Olsen是吗?但我尝试过了。它对PHP单引号和双引号都不起作用。
➜ cd phptest
➜ phptest git:(master) ✗ php 0014.php
Hi there.
This is the second line.%