Okay, so I'm slightly confused. Here is the code I have now, but I just found out the e
modifier is deprecated. How do I convert it to a preg_replace_callback()
? I still haven't figured it out.
$post = preg_replace("/\[code\]([^] )\[\/code\]/e", 'code(\'$1\')', $post);