What format is this?

前端 未结 3 1774
广开言路
广开言路 2021-01-22 20:54

This is simple, but I don\'t know what to search to find my answer. Can someone please tell me in what format this data was inserted in the table ?

I want to read/inser

相关标签:
3条回答
  • 2021-01-22 21:15

    It's a serialized array you can deserialize it with http://www.php.net/manual/de/function.unserialize.php

    0 讨论(0)
  • 2021-01-22 21:23

    That looks like Json, see http://en.wikipedia.org/wiki/JSON and http://www.json.org/

    0 讨论(0)
  • 2021-01-22 21:30

    This is an serialized array, you can unserialize it to convert it back to the array type, and then serialize it back to string.

    There is obviously a lot of debate on this being json or serialized data, but the length indicators for the upcoming string next to : clearly indicate a serialization.

    $aArray = unserialize($sContents);
    $sContents = serialize($aArray);
    
    0 讨论(0)
提交回复
热议问题