“PHP is a hodgepodge morass”, part ∞

Aristotle on 2006-12-03T08:46:26

Shaun Inman:

But what if you‘re of the OO-persuasion and use square brackets in your input name attributes to group the properties of your object? Something like this:



Based on the behavior of the $_GET and $_POST superglobals one would assume something along the lines of:

[…]

But what have we learned about assumption? Suddenly, $_FILES is a tangled mess. The properties of your uploaded files become properties of your named object and the properties you were expecting become properties of the uploaded file properties! Zah?

Why am I not surprised?