Please enter string into the INPUT BOX provided below! '.$split_newline_string[$a]."
\n"; } else { $color = getRandomColors(); $line .= "0x".$color.$split_newline_string[$a]." "; $display .= ''.$split_newline_string[$a]." "; } } } else { $color = getRandomColors(); $line .= "0x".$color.$split_string[$x]." "; $display .= ''.$split_string[$x]." "; } } placeDisplay($display); placeHTMLCode($line, $_POST["text_input"]); } else { if (preg_match("/\n/", $_POST["text_input"])) { $split_newline_string = explode("\n", $_POST["text_input"]); for($a = 0; $a < count($split_newline_string); $a++) { if ($a < (count($split_newline_string) - 1)) { $color = getRandomColors(); $line .= "0x".$color.$split_newline_string[$a]."\n"; $display .= ''.$split_newline_string[$a]."
\n"; } else { $color = getRandomColors(); $line .= "0x".$color.$split_newline_string[$a]." "; $display .= ''.$split_newline_string[$a].""; } } placeDisplay($display); placeHTMLCode($line, $_POST["text_input"]); } else { $color_code = getRandomColors(); $line = $_POST["text_input"]; $display .= ''.$line.""; placeDisplay($display); placeHTMLCode("0x".$color_code.$line, $_POST["text_input"]); } } } } else { loadDefault(); } ?>
Output:
Input:
Output:
Input:
Display:

9) { if ($cGot == 10) $cGot = "a"; elseif ($cGot == 11) $cGot = "b"; elseif ($cGot == 12) $cGot = "c"; elseif ($cGot == 13) $cGot = "d"; elseif ($cGot == 14) $cGot = "e"; elseif ($cGot == 15) $cGot = "f"; }*/ $colors .= $arColors[$cGot]; } return $colors; } ?>