PHP newline problem
大家讲道理
大家讲道理 2017-06-29 10:08:44
0
2
836

I encountered a problem while reading PHP-related tutorial books. Please forgive me for being too clumsy. Forgive me for using a capitalized book title number instead of <>, otherwise a line break will be automatically displayed.
echo "a: [".(20>9)."]《br》";
The above is a simple Boolean expression
Why should the line break symbol of "br" be written in ""? And if it is written between "and;, an error will be reported?
(

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
黄舟
你要明白為什麼寫在""雙引號內,由於寫起雙引號內,編譯才會視<br>為字符串輸出出來。但在引號外,<br>不是變量和常量,所以就是出現報錯!
迷茫

You can echo "a:[.(20>9)."], '<br>';

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!