", '', $phpString); $phpString = highlight_string($phpString, TRUE); $newString = explode("_NEW_LINE_", $phpString); $noLines = count($newString); $noLines--; $returnSession = ''; $returnSession .= "
\n"; $returnSession .= "

PHP:

\n"; $c=1; while(isset($newString[$c])){ if($c != $noLines){ $returnSession .= '
'.$c.'
'; $line = $newString[$c]; $replace = array( '@@is', '@
@is', '@
@is'); $by = array( '', '', ''); $line = preg_replace($replace, $by, $line); $returnSession .= $line.'
'."\n"; } $c++; } $returnSession .= "
\n"; return $returnSession; } function phpBB ($string){ $string = preg_replace_callback('/\[php\](.*?)\[\/php\]/is', 'strToPhp', $string); return $string; } ?>