Jump to content

split mrk2


canadabeeau

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/193742-split-mrk2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.