我有一个矩阵结构,我认为它应该由一个“ for”循环(包括“ if”)创建
我需要一个代码来产生h(k)。我尝试了这段代码,但无法给出5个名为h(k)的矩阵,我的意思是h(1),h(2)等
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = 1000;
//$config['encrypt_name'] = TRUE;
// $config['overwrite'] = FALSE;
$config['file_name'] = time();
$this->load->library('upload', $config);
$this->upload->initialize($config);
if ( ! $this->upload->do_upload('pic_file'))
{
$error = array('error' => $this->upload->display_errors());
print_r($error);
}
else
{
$data = array('upload_data' => $this->upload->data());
// print_r($data);
}
错误是“数组索引必须为正整数或逻辑值。”