canadabeeau Posted March 1, 2010 Share Posted March 1, 2010 Okay I have a string, say <div id="nav"> <!--/ MENU PLACEHOLDER /--> </div> <div id="content"> <div><h2><!--/ HEADER PLACEHOLDER /--></h2> <p><!--/ CONTENTS1 PLACEHOLDER /--></p> <p><!--/ IMAGE PLACEHOLDER /--></p> <ul> <!--/ CONTENTS2 PLACEHOLDER /--> </ul></div> </div> <div id="content"> <!--/ CONTENTS PLACEHOLDER /--> </div> <div class="clear"></div> <div id="footer"> <!--/ FOOTER PLACEHOLDER /--> </div> Now I need a PHP function to detect and store in an array all the text between <!--/ /--> (ie FOOTER PLACEHOLDER) and all the code between /--><!--/ (ie </div><div class="clear"></div><div id="footer">) Any help is much aprreciated, thanks in advance Quote Link to comment Share on other sites More sharing options...
canadabeeau Posted March 1, 2010 Author Share Posted March 1, 2010 so basically I would have $incomment ($incomment[0], $incomment[1] etc) and $outcomment, ($outcomment[0], [1] etc) Quote Link to comment Share on other sites More sharing options...
canadabeeau Posted March 1, 2010 Author Share Posted March 1, 2010 SOLVED Quote Link to comment Share on other sites More sharing options...
salathe Posted March 1, 2010 Share Posted March 1, 2010 Please share your solution for anyone else who might reach this topic searching for a similar thing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.