I am fairly new to PHP (not new enough for newbies tho!)
I have built a site that consists of XML documents which are parsed using a simple PHP script, through switch statements.
I am now trying to build a very user-friendly editor, so that my clients can edit the news page themselves. It needs to be very simple; i.e options to add, edit, delete items. The edit section will just be two textareas: title and text.
I have no problem stripping out the XML into an array and displaying it. However, i'm not sure how to edit a given section of an array, or how to delete/add sections to a multi-dimensional array in PHP.
I have done lots of C and Java in the past, but PHP seems to access arrays in funny ways. I.e. it seems i can't make a reference to news[0][1] to change it? or can i?
Maybe is should use the DOM-XML functions.