One reader reports that $stmt
is rather confusing, and I am inclined to agree. This variable name is a bit of a standard for PDOStatement
objects, but $statement
or even $result
would be better.
It might be worth scanning the whole codebase for any variables that have been unnecessarily abbreviated.