Hi,
I'm trying to run the code bellow but with no success. No error message but the value is not changed.
Code:
class A {
public $item_limit;
public function __construct(){
$this->item_limit = null;
}
function test() {
echo $this->item_limit;
}
}
class B extends A {
function My_test() {
$tools = new A();
if (isset($limit))
$tools->item_limit = $limit;
}
}
Any help will be appreciated plz.
Best Regards