I may be asking this question wrong but I'm having trouble finding any specific answers. In most examples of the MySQL PDO I see, it's being used with functions for example:
function getContent() {.....} So my question is.... is the PDO I see being structured this way for security purposes or is it for other reasons such as cosmetic and or to prevent repetition etc?