PHP ile bir diziye DB alanından değerleri almak

1 Cevap php

Ben gibi virgülle ayrılmış değer tutan benim DB bir alan var;

$tmp_list = "COB,ISJ,NSJ,"

Now when I fetch that the row, I would like to have them in an array. I have used array($tmp_list) but I get the values in one line only like:

[0] => 'COB,ISJ,NSJ,'

yerine

[0] => 'COB',
[1] => 'ISJ',
[2] => 'NSJ'

Tüm yardım appriciated.