What does a . (dot) do in PHP?

前端 未结 4 472
生来不讨喜
生来不讨喜 2020-12-01 09:21

What does the following command do in PHP?

. $string   // ($string is something which i declared in the program)
4条回答
  •  执笔经年
    2020-12-01 09:56

    Taken alone, this is a syntax error. The dot . is the concatenation operator that converts its arguments to strings and concatenates them. For example,

提交回复
热议问题