Hi. I have an class where one of it's members is an array of itself:
class family {
public FamilyName; // Eg. Smith
public FirstNames = array(); // Eg. (John => 30, Jane => 28, Jack => 2)
public ExtendedFamily = array(); // Family class of cousins, etc
function getFamilyName() { return FamilyName; }
function getFirstNames() { ... }
function getExtendedFamily() { ... }
|
I'm trying to get the output to be something like this:
<h2>Smith</h2>
<table>
FirstName Age
John 30
Jane 28
Jack 2
</table>
<h2>Smith Cousins</h2>
<table>
FirstName Age
Joe 31
Jill 29
Jesica 3
</table>
. . . possibly more family tables . . .
|
I've tried all sorts of ways and searched through the forums but can't find anything similar. All help greatly appreciated.