Topic: How to convert string to array in php?

Hello Guys, How to convert string to array?

Is this should be like this?

arr[0]=this
      arr[1]=is
      arr[2]=string

Re: How to convert string to array in php?

Youcan perform the conversion using PHP-function:

preg_split("~\s~", "this is string");
Best regards,
CN Support team

Re: How to convert string to array in php?

Is preg_split still valid in php v7+

Re: How to convert string to array in php?

Yes it it still valid in v7.0

Re: How to convert string to array in php?

Good to know, thx.

Re: How to convert string to array in php?

No problem :-)