Home  >  Q&A  >  body text

echo为什么后面有时候加“”,有时候不加引号?echo的作用是什么?

phpcn_u233phpcn_u2332833 days ago2186

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:56:05

    Why is echo sometimes followed by "" and sometimes not quoted? What is the function of echo? -PHP Chinese website Q&A-Why is echo sometimes followed by "" and sometimes not quoted? What is the function of echo? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-19 16:41:37

    加引号是修饰的是字符串,单引号是不解析引号内的内容,不能不带引号吧,echo的作用是输出的意思

    reply
    0
  • phpcn_u2293

    You can use it without quotation marks, for example $a=5;$b=3; echo $a+$b;

    phpcn_u2293 · 2017-05-18 10:44:51
  • Cancelreply