Not sure if that made sense.
I have this:
variable 1, variable 2,variable 3
variable 4
variable 5, variable 6
variable 7, variable 8,variable 9
And want to edit 1 line only.
ie where:
value1, value2,value3
I wish to add a new value to that line
value1, value2,value3,new value
or remove a line:
value1, value2
The common value here is the prefixing value, in the above case, value 1.
The posted data for adding would be posted as:
value1, value2,value3,new value
and likewise for removing value, would be:
value1, value2
If I was replacing a value, that is easy, preg_replace(). But I need to find the line that is being changed, then apply the changes.