What is the data format above? How to avoid using PHP? Thanks a lot

Source: Internet
Author: User
What is the data format below? How to deal with PHP? Thank you!
i:5;a:10:{
I:2;a:2:{s:2: "DF"; s:1: "0"; S:2: "Da"; s:1: "1";}
I:22;a:2:{s:2: "DF"; s:1: "1"; S:2: "Da"; s:1: "1";}
I:18;a:2:{s:2: "DF"; s:1: "0"; S:2: "Da"; s:1: "1";}
I:130;a:2:{s:2: "DF"; s:1: "0"; S:2: "Da"; s:1: "2";}
I:4;a:2:{s:2: "DF"; s:1: "1"; S:2: "Da"; s:1: "1";}
I:128;a:2:{s:2: "DF"; s:1: "1"; S:2: "Da"; s:1: "1";}
I:20;a:2:{s:2: "DF"; s:1: "0"; S:2: "Da"; s:1: "2";}
I:1;a:2:{s:2: "DF"; s:1: "1"; S:2: "Da"; s:1: "2";}
I:3;a:2:{s:2: "DF"; s:1: "1"; S:2: "Da"; s:1: "2";}
I:129;a:2:{s:2: "DF"; s:1: "1"; S:2: "Da"; s:1: "1";}
}

------Solution--------------------
A lot:, study.
------Solution--------------------
I:5; and later, are standard serialized strings, not including line breaks, spaces and other characters, stitching together is not

Unserialize (substr (...));
------Solution--------------------
You're out of context.
Remove the starting i:5; And after you remove the carriage return line break, serialize the string for PHP

Print_r (Unserialize ($s));
PHP Code
Array ([2] = = Array ([DF] = 0 [da] = 1) [] = = Array ( [DF] = 1 [da] + 1) [+] = Array ([df] = 0 [D A] + 1) [+] = Array ([df] = 0 [da] + 2) [4] = Ar Ray ([DF] = 1 [da] = 1) [+] = Array ([df] =    1 [da] = 1) [+] = Array ([df] = 0 [da] + 2)            [1] = = Array ([DF] = 1 [da] = 2) [3] = = Array (  [DF] = 1 [da] + 2) [129] = = Array ([DF] + 1 [da] = = 1))
------Solution--------------------
Learned, not serialized a few times.
------Solution--------------------
I also study!!
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.