use public $var or __construct()?
I'm new to PHP OOP, I think `public $var` and `__construct()` is exactly the same.
What's the difference? Which one should I use?
use public $var or __construct()?
===

I'm new to PHP OOP, I think `public $var` and `__construct()` is exactly the same.
What's the difference? Which one should I use?