Using the static modifer & __get method - real world examples?

Hello All,

Wondering if anyone can help. I’m learning OOP and have learnt about two things the static modifier and __get method. Now i’ve looked at the online examples and understand them, but am struggling to put them into practice in the ‘real world’ rather than through something entirely useful like making a dog bark :rolleyes:!!

I take it these two things are regually used in OOP, but can’t picture where and how they can be used.

Does anyone have any code examples that would make me understand this?

What i’m looking to build in OOP is a CMS and a shopping cart, so any simple examples on how they can be used in each would be great?

Thanks