Hello,
Does someone knows how i can put data from a db field called pictures with the value like this 1,2,3,4,5,6,7,8 in an array.
So i would like to grab the data out of my table and put everything in an a array like $array[]=1, $array[]=2,$array[]=3
each number before or after the , as an array item.
Cheers,
Kris
Data from db in array
Moderator: General Moderators
Code: Select all
$string = '1,2,3,4,5,6,7,8';
$array = explode(',', $string);