What is the data format? A: 24: {s: 8: duration; I: 900; s: 8: redoable; s: 2: 20; s: 8: onebyone; s: 1: 0; s: 7: answers; s: 1: 1; s: 13: given_answers; s: 1: 1; s: 17: shuffle_questions; s: 1: 1; s: 15: shuff what is the data format?
A: 24: {s: 8: "duration"; I: 900; s: 8: "redoable"; s: 2: "20"; s: 8: "onebyone"; s: 1: "0"; s: 7: "answers"; s: 1: "1"; s: 13: "given_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_retriable "; 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 serialized format can be restored using unserialize.
------ Solution --------------------
Php Serialization data
$s = <<< TXT
a:24:{s:8:"duration";i:900;s:8:"redoable";s:2:"20";s:8:"onebyone";s:1:"0";s:7:"answers";s:1:"1";s:13:"given_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] = & gt; 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_retriable] => 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
)