i have 2 functions in a class, in the first one i have something like that:
public function func1() {
$test = array(1,2,3);
return $test;
}
how to copy the contents from $test in the second function?
public function func2() {
$newarray = $this->func1->test;
print_r($newarray);
}
Sorry, but i have really no idea, how to make this :(