preg_replace
Posted: Fri Dec 03, 2004 5:16 pm
Code: Select all
$output = preg_replace('|\[div](.*)\[/div]|ise',"str_replace('<br />', '', "<div class='div_code'>".highlight_string(stripslashes('\\1'),true)."</div>")", $row['body']);
// $output = preg_replace('|(\[man](.*)\/\[/man])|ise', "'<a href=''http://www.php.net/\\1''>\\1</a>'", $output);
echo nl2br($output);http://www.theobviousreasons.com/index. ... asic+MySQL
Worked the other night np.. argh!!!