insert array into mysql column
snippet in sql

insert array into mysql column

user3040

//Do db insert

$arr = array('val1','val2');
$string = implode(',',$arr);


//Do db retrieve

$arr = explode(',',$string);