2 Answers
activeoldestvotes
up vote1down vote | All that mess is called "syntax sugar" and intended to sweeten a developer's life, though in real it makes taste too sugary to the point of disgust. So, there are two kinds of object's characteristics - natural and unnatural ones. In your place I'd just forget of them, using objects straight way.
That's 2 different classes. They serve different purposes. Like in old mysql you had connection resource and result resource. You have only one connection/PDO instance, but there can be any number actual query results/stmt classes.
That's the very syntax sugar I talked above. They just added such a possibility to the statement object. |
















