Hi guys,
I've been wondering....
Is it possible to take the $code variable (used to store the text between the [CODE*] tags) and explode it by \n (newline) characters
for example
Code:
First Line
Second Line
Third Line
PHP Code:
<?php
$codelines = explode("\n", $code); // or \r\n if it uses this instead
echo "First line = $codelines[0]<br>";
echo "Second line = $codelines[1]<br>";
echo "Third line = $codelines[2]<br>";
?>
If so, where would I put it to be useful on the showthread page??