Merge array items into string

后端 未结 10 1922
遇见更好的自我
遇见更好的自我 2020-11-30 12:33

How do I merge all the array items into a single string?

10条回答
  •  悲&欢浪女
    2020-11-30 13:11

    join(" -- ", Array("a", "b")) == "a -- b"
    

    actually join is an alias for the implode function.

提交回复
热议问题