All pastes #960053 Raw Edit

Untitled

public php v1 · immutable
#960053 ·published 2008-03-27 21:05 UTC
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);   }}