String to Array and Back

后端 未结 9 2468
自闭症患者
自闭症患者 2020-12-22 07:19

I have a string, how do I convert it to an array?

After manipulating that array, how do I again make it into a string?

Do strings in PHP behave the same way

9条回答
  •  情话喂你
    2020-12-22 07:51

    in php you can use:

    split like

    Description

    array split ( string $pattern , string $string [, int $limit ] )
    

    Splits a string into array by regular expression.

    or

    implode

     
    

提交回复
热议问题