-3
echo '\n....'.$_SESSION['count'].' rows inserted.........................\n';
no new line using this

echo "\n....".$_SESSION['count']." rows inserted.........................\n";
gives new line with this 

为什么'和'表现不同

4

1 回答 1

1

'用于文字。"用于解析文本。

请参阅PHP 手册字符串

与双引号和heredoc 语法不同,特殊字符的变量和转义序列在出现在单引号字符串中时不会被扩展。

于 2013-02-06T18:00:41.213 回答