php base64_encode,serialize对于存入数据表中字段的数据处理方案

A better way to save to Database

$toDatabse = base64_encode(serialize($data));  // Save to database
$fromDatabase = unserialize(base64_decode($data)); //Getting Save Format 

 

posted @ 2017-09-11 11:01  侠岚之弋痕夕  阅读(248)  评论(0编辑  收藏  举报
Where is the starting point, we don't have a choice, but the destination where we can pursue!