php通过get或post传递数组

我若为王 2019-04-17 AM 2593℃ 1条

最近遇到一个问题,php通过get、post传递数组时会接收不到数据,折腾到凌晨四点多,终于解决了。方法很简单,传递之前将数组序列化
serialize(array());
接收时再将其反序列化
unserialize(array());
即可正常传递与接收数组。

PS:作为小白还是得从基础学起啊

标签: post, get, php

非特殊说明,本博所有文章均为博主原创。

评论啦~



唉呀 ~ 仅有一条评论


  1. daily cialis online
    daily cialis online

    An interesting discussion is worth comment. I think that you need
    to publish more about this subject, it may
    not be a taboo subject but generally people do not discuss such subjects.
    To the next! Kind regards!!

    回复 2022-01-06 09:14
鲁ICP备14003065号-4