split a string into a key => value array in php
- by andy-score
+2-1+18*+7-21+3*-4-5+6x29
The above string is an example of the kind of string I'm trying to split into either a key = value array or something similar.
The numbers represent the id of a class and -,+ and x represent the state of the class (minimised, expanded or hidden), the * represents a column break.
I can split this into the columns easily…