Had a minor panic attack at the sudden thought that square brackets mightn’t be legal in the name attribute of form inputs in (X)HTML, which — given PHP’s incredibly useful array syntax for forms[^1] — would’ve been an unqualified disaster. Five seconds of thought would’ve been reassurance enough, since, well, come on: the hue and cry from the standards evangelists would have shaken heaven itself.
But instead I turned to Google, which turned up all sorts of confirming [misinformation][1] and vaguely related, vaguely threatening [documents][2]. Generally also replies by people who knew what they were talking about, so it all worked out — yes, they are perfectly legal — it just took a while to get there.