I showed this code to my friend
$user->attempts++; // the attempts property returns an int
and he was like saying how stupid that code was, rambling that numeric operators will produce syntax errors when attached to objects; the thing is it worked as I expected it to (increment attempts by 1, oh yeah, I tested it)
and so I ask, why the hell is this working?