';print_r($_POST);echo''; foreach($_POST['ans_opt']as$k=>$v){ $v = fix_post_data($v); var_dump($v);echo'
'; $_POST['ans_opt'][$k] = AIAExam::safe_db_value_for_exam($v); } $ans_opt = serialize($_POST['ans_opt']); echo'
'; echo$ans_opt; echo'
'; die('
'); /*Array ( [id] => 334 [is_manually] => 0 [tester_email] => tester@tester.com [tester_name] => tester [ans_opt] => Array ( [examinput_1] => A [examinput_2] => A [examinput_3] => Array ( [0] => B [1] => C ) [examinput_4] => Array ( [0] => A [1] => B ) [examinput_5] => 2aaaa ) [textarea_opt] => Array ( [examtextarea_1] => bbb 2 [examtextarea_2] => ccccc2 ) )*/