请问这段字符怎么转成数组?
程序员文章站
2022-05-23 10:46:04
...
请问这段字符怎么转成数组?请教了
user_info|a:6:{s:7:"user_id";s:1:"1";s:9:"user_name";s:14:"pfliangcaijian";s:8:"reg_time";s:10:"1341130299";s:10:"last_login";s:10:"1363939627";s:7:"last_ip";s:9:"127.1.1.1";s:8:"store_id";s:1:"1";}
user_info|a:6:{s:7:"user_id";s:1:"1";s:9:"user_name";s:14:"pfliangcaijian";s:8:"reg_time";s:10:"1341130299";s:10:"last_login";s:10:"1363939627";s:7:"last_ip";s:9:"127.1.1.1";s:8:"store_id";s:1:"1";}
回复讨论(解决方案)
人呢,
unserialize?
是这段吗?=》{s:7:"user_id";s:1:"1";s:9:"user_name";s:14:"pfliangcaijian";s:8:"reg_time";s:10:"1341130299";s:10:"last_login";s:10:"1363939627";s:7:"last_ip";s:9:"127.1.1.1";s:8:"store_id";s:1:"1";}
请问这段字符怎么转成数组?请教了
user_info|a:6:{s:7:"user_id";s:1:"1";s:9:"user_name";s:14:"pfliangcaijian";s:8:"reg_time";s:10:"1341130299";s:10:"last_login";s:10:"1363939627";s:7:"last_ip";s:9:"127.1.……
去掉 user_info| 后反序列化