ok, i am tuning up the tutorial viewer now and recreating the parsing that vbulletin does. it's not as easy as just copying over the functions unfortunately because there is so much other stuff happening in vbulletin.
i need to get the text in between the [ p h p ] and [ / p h p ] tags into a variable and i am set. it needs to look for one set of tags at a time in case there are multiple php tags in a post.
PHP Code:
<?
$post="here is some code [ph p]$i=1;[/ ph p]";
?>
how can i parse $post and get '$i=1;' into its own variable?