php - 如何修复php中的非法字符串偏移
问题描述
我正在开发我的网络应用程序,所以我必须从用户那里收集一些问题才能将其放入我的数据库中,但我收到了这个错误
警告:C:\xampp\htdocs\seminarskirad 中的非法字符串偏移 'type' - Copy\kontaktKlasa.php 在第 138 行
public function set_message($message,$type) {
$this->poruka['msg'] = $message;
$this->poruka['type'] = $type;
}
解决方案
推荐阅读
- java - SpringBoot如何为Hikari Pool和jdbcTemplate设置连接获取大小
- typescript - 调试时如何检索 Promise fullfilled 值?
- angular - 角度路由匹配器不调用子详细信息页面
- intellij-idea - Intellij“重新格式化代码”命令不遵循更漂亮的规则
- keras - 数据增强影响收敛速度
- angular - 单击离子项目中的眼睛图标时可以防止键盘打开吗?
- terraform - Terraform 在运行的每个计划上报告对 Application Insights 键的更改
- reactjs - 尝试在自定义侧边栏上显示用户名,它给了我下面的错误消息
- r - 通过保留列名来绑定 R 中的行
- python - python open-cv的人脸识别