Please use this form ONLY to answer or
discuss this particular question or problem.
";
}
$x2 .= "
";
row2($x1, $x2);
}
function quote_text($text, $cols) {
$quoteChar = ">";
$lines = explode("\n", $text);
$lineChars = strlen($quoteChar);
$final = $quoteChar;
for ($i = 0; $i < count($lines); $i++) {
$words = explode(" ", $lines[$i]);
for ($j = 0; $j < count($words); $j++) {
$wordLen = strlen($words[$j]);
if (($lineChars + $wordLen) >= $cols) {
$final = $final . "\n" . $quoteChar;
$lineChars = strlen($quoteChar);
}
$final = $final . " " . $words[$j];
$lineChars += $wordLen + 1;
}
$final = $final . "\n" . $quoteChar;
$lineChars = strlen($quoteChar);
}
return $final;
}
?>