View Single Post
Old 03-03-2003, 07:34 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
parsing [php] tags

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?
sde is offline   Reply With Quote