首页 新闻 搜索 专区 学院

tp5 redis数据修改

0
悬赏园豆:30 [已关闭问题] 关闭于 2021-09-18 13:36

这个购物车数组,不能获取整个cartList,要修改"用户1"的数据,有没有什么办法?
$cartList = [
"用户1" =>[
"商品1" => ["id"=>1,"name"=>"商品1","price"=>10,"number"=>1],
"商品2" => ["id"=>2,"name"=>"商品2","price"=>20,"number"=>2]
],
"用户2" =>[
"商品1" => ["id"=>1,"name"=>"商品1","price"=>10,"number"=>1],
"商品2" => ["id"=>2,"name"=>"商品2","price"=>20,"number"=>2]
]
];

刘韬的主页 刘韬 | 初学一级 | 园豆:9
提问于:2021-07-03 15:30
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册