Jump to content

Convert comma seperated strings into array


ankur0101

Recommended Posts

Hi,

I have something like this >>

1,2,34,56,89,23

which is getting generated dynamically based on some inputs, it could also be like 34,55,67,89,34,56,88 blah blah

 

And I want to convert it to PHP array like

[0] => 1

[1] => 2

[2] => 34

[3] => 56

[4] => 89

[5] => 23

 

How to do that ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.