I would like to load a text file into php and search through the document for stings of text between special tags.
For example the text file would look like this:
<p>This is a non-editable paragraph</p>
<!-- CMS_Begin_Editable id="first" -->
<p>This is the first editable paragraph for the document.</p>
<!-- CMS_End_Editable -->
<!-- CMS_Begin_Editable id="second" -->
<p>This is the second editable paragraph for the document.</p>
<!-- CMS_End_Editable -->
<p>This is a non-editable paragraph</p>
I would like to use php to return the text between “<!-- CSS_Begin_Editable id="first" -->” and “<!-- CSS_End_Editable -->” in to an associative array with the array key set the special tags id name.
This is for use in a content management system. I can do all the loading of the files and saving but I need help getting the editable areas into an associative array.
Thanks,
Ben