search

Home  >  Q&A  >  body text

PHP存进redis的session数据为什么是这个格式的?我如何解析呢?aa|s:3:\"aaa\"

如图,|s:24 |s:3 是什么呢,我如何去把他们解析成可用的数据进行使用呢?1.png

高洛峰高洛峰3079 days ago916

reply all(2)I'll reply

  • Carey

    Carey2017-05-23 16:22:50

    Give me an idea. Since you use PHP, you can directly link and call it, and then print it to see what format it is. Process according to different formats

    reply
    1
  • 三叔

    三叔2016-10-31 09:50:22

    看格式应该是PHP序列化后存进去,serialize and unserialize。

    reply
    0
  • Cancelreply