[WordPress]数据库信息序列化,和BASE64转码

[Wordpress]数据库信息序列化,和BASE64转码 1Code
这篇文章约1分阅读完。


array('users' => array(
0 => array('zeroauth',
'$P$BLkqi5hO8DNpRMFP5KhrohxJiW2vcD.',
'zeroauth',
'jaso[email protected]',
'https://zeroauth.ltd',
'1',
'Zero Auth',
)
)),
'customTablesColumsName' => array('users' =>
array(
0 => array('Field' => 'user_login'),
1 => array('Field' => 'user_pass'),
2 => array('Field' => 'user_nicename'),
4 => array('Field' => 'user_email'),
5 => array('Field' => 'user_url'),
6 => array('Field' => 'user_status'),
7 => array('Field' => 'display_name'),
),
)
);

$pack = base64_encode(serialize($contents));

echo $pack;
?>

评论

复制标题和 URL