Hi. Is it possible to use an object that was created during a class' construction within the member methods of that class?
Ex
<?php
include ('AClass.php');
class Auto_Cart {
function Auto_Cart() {
$aclass = new AClass();
}
function DoSomething() {
$aclass->amemberfunction();
}
}
?>
When I call DoSomething, it should call aclass->amemberfunction()
I think my syntax is wrong but maybe this just isn't possible. Can you help me out?
Thanks!