function highlight_php ($string) { preg_match ("`\[php\](.+?)\[/php\]`is", $string, $matches); $replaced = highlight_string ($matches[1], true); $replaced = 'PHP:
' .$replaced.'
'; $thephph = preg_replace('`\[php\](.+?)\[/php\]`is', $replaced, $string); return $thephph; }