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!!