search

Home  >  Q&A  >  body text

What does comma mean in PHP? Don't you use a dot "." to connect?

TIM截图20181206173656.jpg

弦知音弦知音2272 days ago924

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2018-12-07 13:53:56

    This is not about concatenating strings. echo can output multiple variables at the same time. If multiple variables are output, using commas is much more efficient than using dot syntax to assemble, eliminating the need for variable parsing in the string. It seems , you still don’t understand the basic syntax of PHP very well. It is recommended to make up the basics

    reply
    1
  • 弦知音

    Thanks for the answer, Brother Zhu, I am learning the basics.

    弦知音 · 2018-12-10 08:11:44
  • Cancelreply