我在用Php (Codeigniter)工作,我正在尝试在我的项目中使用“excel”库,我上传了“libraries”文件夹中的文件和文件夹,并使用了以下代码
public function __construct() {
parent::__construct();
$this->load->library('excel');
$this->load->model('Crud_model');
}
但我收到“不再支持带大括号的数组和字符串偏移量访问语法”错误,我该如何解决?提前谢谢。
您当前的php版本不再支持您的excel库上的代码,您可以降级php版本或使用新的excel库,如PhpSpreadsheet