1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Learning about serialization of data

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

  1. #1
    Hi guys,
    SEMrush
    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
    SEMrush
  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.