This is not even remotely OK.
1 2 3 4 |
|
UPDATE: The code sample above probably wasn’t the best way to share exactly why I was so upset about the technique. What’s not at all obvious from the snippet is that the $row
variable is a row returned from a database query, making it impossible to tell what variables are being set and what they’re being set to simply by reading the code. To make matters worse, the query that retrieves the database row is also stored in the database, and is assembled from a previous query.
This probably would have been the better example, a function found in one of multiple function.inc
files spread across the project.
1 2 3 4 5 6 7 8 9 |
|