Menu
Anyone have an example, to go in the following function, for handling the following type of replacement in a forum post?
[CODE]
Click [href=url]here[/href] to see the page.
[code=php]
function ubb_code_replacement($str)
{
…replacement…
return $str;
}
I’m familiar with preg_match_all, preg_replace, and str_replace but I’m thinking about efficiency in coding — so, am looking for ideas and suggestions in that area. Thanks.