Unfortunatly you cannot do it any other waay (as far a I am aware in PHP). You could have a comma delimetered list and use explode to load it into an array when the script starts.

For now, try replacing the quare brackets with their url encoded equivilents: [ = %5B and ] = %5D