开发者

Read this using php

开发者 https://www.devze.com 2023-03-24 23:52 出处:网络
Is there any way to read/write the follow开发者_运维百科ing data using php? And what is this called?

Is there any way to read/write the follow开发者_运维百科ing data using php? And what is this called?

a:1:{s:13:"administrator";s:1:"1";}


Looks like data serialized by the PHP serialize() function. You can read it using unserialize().

$serialized = 'a:1:{s:13:"administrator";s:1:"1";}';
$data = unserialize($serialized);
print_r($data);


try using unserialize() if that is a serialized data then that should unserialize it.


Yep... That's serialized data. You can unserialize it for pure chechup purposes here - http://unserialize.net/serialize.

Other than that use unserialize() in your PHP code.

0

精彩评论

暂无评论...
验证码 换一张
取 消