$ti = 0; $table = array(); foreach ($_REQUEST as $variable=>$req) { $ia = is_array($req); if ($ia == true) { foreach ($req as $re2) { dprint($re2); // now i need the index / name of $re2 for the line below // $table[$re2.index][$variable] = $re2 } echo "$variable
"; } $ti++; }