php如何把一个多维数组输入到一个文件中啊?

2025-05-21 10:36:05
推荐回答(2个)
回答1:

可以使用序列化函数,或者直接保存数组
file_put_contents('1.php',"");

回答2:

用serialize函数存为字符串,读取时unserialize