rendered paste body$cate = array();foreach($_POST AS $key => $value) { if (is_int(strpos($key,"cattag"))) { $t = explode("_",$key); $a = $t[1]; $b = $t[2]; $c = $t[3]; $cate[$a][$b][$c] = $value; }}$categories = array();foreach($_POST AS $key => $value) { if (is_int(strpos($key,"subcat"))) { $t = explode("_",$key); $a = $t[1]; $b = $t[2]; $c = $t[3]; $categories[$a][$b][$c] = $value; }}$strings = array();foreach ($categories AS $key1 => $array1) { foreach ($array1 AS $key2 => $array2) { $strings[$key1][$key2] = implode(';', $array2); }}