<input name="type[]" type="checkbox" id="inlineCheckbox2" value="0" checked="">
<input name="type[]" type="checkbox" id="inlineCheckbox2" value="1" checked="">
<input name="type[]" type="checkbox" id="inlineCheckbox2" value="2" checked="">
$data['type'] = implode(',',I('post.type'));
这样的确是可以把数组变成字符串存进去了,但是取出来的时候依然是字符串,难道要我一个个的再解析回去?
有什么高招吗?
最佳答案