Home > Backend Development > PHP Tutorial > 请教这段字符如何转成数组

请教这段字符如何转成数组

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:50:48
Original
799 people have browsed it

请问这段字符怎么转成数组?
请问这段字符怎么转成数组?请教了
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
------解决方案--------------------
   后反序列化
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Switch user
From 1970-01-01 08:00:00
0
0
0
User login
From 1970-01-01 08:00:00
0
0
0
Delete user to get id
From 1970-01-01 08:00:00
0
0
0
Translate: Laravel: Get Sanctum token by user ID
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template