Say I have this code:
class cats {
function cats_suck() {
$this->cats = "monkeys";
}
}
$cats = new cats;
$cats->cats_suck();
echo $cats->cats; //Monkeys?
I would like to pass $cats to outside of my class, I would usually just return $cats then echo the function, but I have a lot of variables in my code.
cats. Post real code