Menu
Ok guys,
I’ve written a few classes and need some help with them. Let’s say I have a ROW object. This object contains a method called getCell which returns a CELL object. My CELL class has a method called getData that returns a string. Thus:
$row->getCell(0) returns a CELL object
$cell->getData() returns a string
I want to do something like this:
echo( $row->getCell(0)->getData() );
However, PHP does not like this. What am I doing wrong?