Looked all over for the answer to this but can't find it. Maybe I'm
searching for the wrong thing. I'm new to using classes in PHP.
Whenever I try and reference the member's ($line) properties or
functions I either get blank for properties or "Call to a member
function on a non-object" for functions. I'm sure I'm doing something
incorrectly with the assignment.
function LineGroup($classarray)
{
$groupout = "";
while ($line = each($classarray))
{
$groupout .= "<tr><td>".$line -> GetCat1Desc()."</td></tr>";
}
return $groupout;
}
also even when I try the following the same problem occurs
function LineGroup($classarray)
{
$groupout = "";
$groupout .= "<tr><td>".$classarray[0] ->
GetCat1Desc()."</td></tr>";
return $groupout;
}
Any help would be greatly appreciated.
Thanks, Cory