insert array into mysql column

Solutions on MaxInterview for insert array into mysql column by the best coders in the world

showing results for - "insert array into mysql column"
Adrián
07 Mar 2019
1//Do db insert
2
3$arr = array('val1','val2');
4$string = implode(',',$arr);
5
6
7//Do db retrieve
8
9$arr = explode(',',$string);
10