How to extract Heading tags in PHP from string

connietan

New Member
From a string that contains a lot of HTMl, how can I extract all the text from \[code\]<h1><h2>etc\[/code\] tags into a new variable.Possibly using preg_match_all and sending the matches to a single comma delimited variable.Thanks guys.
 
Back
Top