net3x
Graham I m using like this
<?php
function bbcode ($msg) {
$msg = htmlentities($msg);
$search = array( '/\[br\]/is', '/\[b\](.*?)\[\/b\]/is',
'/\[i\](.*?)\[\/i\]/is', '/\[u\](.*?)\[\/u\]/is',);
$replace = array(
'<br />',
'<strong>$1</strong>',
'<em>$1</em>',
'<u>$1</u>',);
$msg = preg_replace ($search, $replace, $msg);
$msg = bbcode ($msg);
return $msg;
}
?>
Copy code
now can u guide me for [googlemap]LOCATION[ /googlemap]..