求高手 拯救我PHP变量后面带[]是什么 意思
我就贴上关键代码
<br /> foreach ($logData as $key => $data) {<br /> $kItem[] = $key;//这里变量后面的[]是什么<br /> $dItem[] = $data;<br /> $cshu++;<br /> if($cshu == 8) $dItem[] = "i";<br /> }<br /> $field = implode(',', $kItem);<br /> $values = "'" . implode("','", $dItem) . "'";<br /> $this->db->query("INSERT INTO " . DB_PREFIX . "blog ($field) VALUES ($values)");