Learning about serialization of data

Discussion in 'PHP' started by News Updates, Jan 7, 2014.

  1. #1
    Hi guys,

    Today I'm learning about serialization of data. While digging mysql I saw two types of data, as shown in image below. Can anyone tell me whats the difference in both?

    [​IMG]

    Thank you.
     
    News Updates, Jan 7, 2014 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    why don't you check it out yourself.
    var_dump(unserialize('a:2:{i:0;i:1;i:3;}'));
    var_dump(unserialize('s:14:"a:1:{i:0;i:3;}"'));
    PHP:
     
    stephan2307, Jan 8, 2014 IP
    bartolay13 likes this.