ankur0101 Posted March 21, 2014 Share Posted March 21, 2014 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 ? Quote Link to comment https://forums.phpfreaks.com/topic/287146-convert-comma-seperated-strings-into-array/ Share on other sites More sharing options...
PravinS Posted March 21, 2014 Share Posted March 21, 2014 use php explode() function http://www.php.net/manual/en/function.explode.php Quote Link to comment https://forums.phpfreaks.com/topic/287146-convert-comma-seperated-strings-into-array/#findComment-1473425 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.