Simetrical schreef:
Numeric indexes are much less readable than string indexes in this case. If you really want you could use named constants, but you really should not use magical meanings like 1 = remove, 0 = add. It's confusing.
I had to use numeric indexes, because I switched to another function (splitGroups()) that returns an array with numeric indexes. Can't really help that other than by changing splitGroups() and breaking stuff, something I don't like to do. Comments on brace style and underscores are duly noted.
Roan Kattouw (Catrope)