Posts by ciprisilveira • 43 points
1 post
-
4
votes1
answer62
viewsQ: What would be the 'right' way to declare variables in PHP OO?
I’m starting to study O and fall into the following doubt: <?php class Caneta { var $modelo; var $cor; var $ponta; var $carga; var $tampada; } OR SO: <?php class Caneta { public $modelo;…