douhao3562
2016-10-04 13:04
浏览 242
已采纳

如何通过将数组转换为JSON来保存数据库中的PHP数组?

Here is a my PHP array. I want to convert it into JSON. after a converting to JSON. than after I want to save it in database how can I achieve this?

Array
(
    [0] => 6:30pm
    [1] => 
)
Array
(
    [0] => 8:00pm
    [1] => 
)
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • drruhc4944 2016-10-04 13:06
    已采纳

    If you really need to store json in the database, you can use json_encode and json_decode.

    评论
    解决 无用
    打赏 举报
查看更多回答(2条)

相关推荐 更多相似问题