<?php class test{ function load($db){ [...] return $this->$dane=$dane; } function get(){ } } $test = new test(); $test->load('db'); $test->get(); ?>
Niestety po wywołaniu $test->get(); wyświetlane jest 'puste', co z tym zrobić?
<?php class test{ function load($db){ [...] return $this->$dane=$dane; } function get(){ } } $test = new test(); $test->load('db'); $test->get(); ?>