Incurring the resource from another class, the resource table
<p>I am looking for a way to load an array from another class, as in the Kohana Framework. But I fail to get the message Notice: Undefined variable: tab1</p>

<pre><code>&lt;?php

class A {
    private $tab1 = array('raz'=&gt;true, 'dwa'=&gt;false);
    private $tab2 = array('trzy'=&gt;false, 'cztery'=&gt;true);
    public function config($var) {
        return $$var;
    }
}

class B {
    public function get() {
        $ob = new A;
        $tab = $ob-&gt;config('tab1');
        //unset($ob)
        return $tab;
    }
}

$ob=new B;
$tab = $ob-&gt;get();

print_r($tab);
</code></pre>
