100) $return = 100; $list .= $return.str_repeat("}",$pos).";"; } else if($item == "adena" && $max < 2){ $list .= ($line * $adena).";"; $max++; } else { $item = ""; $list .= $line.";"; } } else { $item = str_replace(array("{","[","]"),"",$drop_a[$e]); $list .= $drop_a[$e].";"; $max = 0; } } if(strpos($row[$i], "}")) $list = substr($list, 0, (strlen($list)-1)); $output .= $list." "; } else $output .= $row[$i]." "; } fputs($gh,$output."\r\n"); // if($z++ > 30) {fclose($gh); die();} } fclose($gh); fclose($oh); ?>