Turn array of words into string with php

前端 未结 1 2024
执念已碎
执念已碎 2021-01-24 10:25

I have an array of keywords...

(array) -> (house, table, horse, tree)

I need to create a string from that like this:

house+table+horse+tree

How

相关标签:
1条回答
  • 2021-01-24 10:48

    Use implode()

    $string = implode('+', array(house, table, horse, tree));
    
    0 讨论(0)
提交回复
热议问题