What is this data format?
A:24:{s:8: "duration"; I:900;s:8: "Redoable"; S:2: "S:8"; OneByOne: "0"; s:1: "S:7"; answers: "1"; s:1: "S:13 Answers "; s:1:" 1 "; s:17:" Shuffle_questions "; s:1:" 1 "; s:15:" Shuffle_answers "; s:1:" 1 "; s:17:" General_threshold "; i:50 ; s:12: "Master_score"; i:50;s:11: "Random_pool"; i:0;s:17: "User_configurable"; i:0;s:16: "Maintain_history"; s:1: "5"; S:12: "Display_list"; s:1: "0"; s:10: "Pause_test"; s:1: "1"; s:15: "Display_weights"; s:1: "1"; S:12: "Only_forward"; s:1: " 0 "; s:10:" Answer_all "; s:1:" 0 "; s:10:" Redo_wrong "; I:0;s:8:" redirect "; S:1:" 0 "; s:13:" Assign_to_new "; N;S:20: "Automatic_assignment"; N;S:20: "Show_answers_if_pass"; s:1: "1"; s:15: "Show_incomplete"; i:0;s:13: "Test_password"; i:0;} Data Format
------Solution--------------------
The format after serialization, which can be restored with unserialize ().
------Solution--------------------
PHP serialized data
$s = <<< TXT
A:24:{s:8: "duration"; I:900;s:8: "Redoable"; S:2: "S:8"; OneByOne: "0"; s:1: "S:7"; answers: "1"; s:1: "S:13 Answers "; s:1:" 1 "; s:17:" Shuffle_questions "; s:1:" 1 "; s:15:" Shuffle_answers "; s:1:" 1 "; s:17:" General_threshold "; i:50 ; s:12: "Master_score"; i:50;s:11: "Random_pool"; i:0;s:17: "User_configurable"; i:0;s:16: "Maintain_history"; s:1: "5"; S:12: "Display_list"; s:1: "0"; s:10: "Pause_test"; s:1: "1"; s:15: "Display_weights"; s:1: "1"; S:12: "Only_forward"; s:1: " 0 "; s:10:" Answer_all "; s:1:" 0 "; s:10:" Redo_wrong "; I:0;s:8:" redirect "; S:1:" 0 "; s:13:" Assign_to_new "; N;S:20: "Automatic_assignment"; N;S:20: "Show_answers_if_pass"; s:1: "1"; s:15: "Show_incomplete"; i:0;s:13: "Test_password"; i:0;}
TXT;
Print_r (Unserialize ($s));
Array
(
[Duration] = 900
[Redoable] = 20
[OneByOne] = 0
[Answers] = 1
[Given_answers] = 1
[Shuffle_questions] = 1
[Shuffle_answers] = 1
[General_threshold] = 50
[Master_score] = 50
[Random_pool] = 0
[User_configurable] = 0
[Maintain_history] = 5
[Display_list] = 0
[Pause_test] = 1
[Display_weights] = 1
[Only_forward] = 0
[Answer_all] = 0
[Redo_wrong] = 0
[REDIRECT] = 0
[Assign_to_new] =
[Automatic_assignment] =
[Show_answers_if_pass] = 1
[Show_incomplete] = 0
[Test_password] = 0
)