我怎么写这个在PHP?(我会用>>打印出内容)

Sar*_*nHB 1 php

我记得前一段时间我用这样的方法打印出内容,所以每次我不得不使用引号时我不必使用斜杠.

>> 

some text here "and more text



something;
Run Code Online (Sandbox Code Playgroud)

那叫什么?它看起来怎么样

谢谢

我要写下来:p

kar*_*m79 6

你在谈论heredoc语法.例:

$str = <<<EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;
Run Code Online (Sandbox Code Playgroud)