class klasa{ public $a; public $b; public function pole($x, $y) { $this->a->$x; $this->b->$y; } public function pokaz() { $inna = $this->a * $this->b; return $inna; } } $var = new klasa(); $var -> pole(2,2);
Czemu wynik wychodzi 0 ;]


class klasa{ public $a; public $b; public function pole($x, $y) { $this->a->$x; $this->b->$y; } public function pokaz() { $inna = $this->a * $this->b; return $inna; } } $var = new klasa(); $var -> pole(2,2);