📜  php 序列化数组 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:45.594000             🧑  作者: Mango

代码示例3
//If you plan to serialize and store it in file or database use below syntax
//to safely serialize
$safe_string_to_store = base64_encode(serialize($multidimensional_array));

//to unserialize...
$array_restored_from_db = unserialize(base64_decode($encoded_serialized_string));