"; while(list($key, $val) = @each($temp)) { $out .= "'$key' = '" . dump_item($val) . "'`n"; } $out .= "}"; } else { $out .= $item; } return $out; } function dump_item_ascode($item,$indent="\t"){ $out = ""; if (is_array($item)) $temp = $item; else $temp = @unserialize($item); if (is_array($temp)) { $out .= "array(\n$indent"; $row = array(); while(list($key, $val) = @each($temp)) { array_push($row,"'$key'=>" . dump_item_ascode($val,$indent."\t")); } if (strlen(join(", ",$row)) > 80){ $out .= join(",\n$indent",$row); }else{ $out .= join(", ",$row); } $out .= "\n$indent)"; } else { $out .= "'".htmlentities(addslashes($item), ENT_COMPAT, getsetting("charset", "ISO-8859-1"))."'"; } return $out; } ?>