Ok an example is the best :
class CMine {
function CMine() {
...
}
function get_submine() {
return new CMine();
}
}
I now wish in my code to do something like
$myMine= new CMine();
$mySubMineLv2= $myMine->get_submine()->get_submine();
I can't get this syntax a->b()->c() to work.
Note that I tested my code to ensure that a->b() returns a valid object. If I do :
$myTMPMine=$myMine->get_submine();
$mySubMineLv2=$myTMPMine->het_submine();
everything's correct, but sometimes I don't need the temp object as I only wish to call one method.
Plz help...