Preg_Match_All: two values in a pattern

cbjack

New Member
I have custom tags \[code\][tag val=100][/tag]\[/code\]. How do I get \[code\]val\[/code\] and whatever goes between the tags?ex:\[code\][tag val=100]apple[/tag] \[/code\]value1 = 100
value2 = appleedit: what if I had multiple items inside the tag
ex: \[code\][tag val=100 id=3]\[/code\]
 
Back
Top