php object attribute with dot in name

前端 未结 5 497
借酒劲吻你
借酒劲吻你 2020-11-29 12:28

I have mysql table with collumns like \'operation.date\', \'operation.name\' and etc. After fetching that table data as object with $mysqli->fetch_object() i

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 12:52

    You can get assoc array instead object by using $mysqli->fetch_assoc()

提交回复
热议问题