DEV Community

cem kaan kosali
cem kaan kosali

Posted on

“Family Tree” Data Structure

There is no right or wrong programming paradigm.
In family tree, it's obvious to choose OOP instead of functional programing.
I have no idea how to implement this kind of data into functional programming.
Check out this answer, isn't it just stunning and amazing?

"Family Tree" Data Structure

7

I'm looking for a way to represent a family tree in PHP. This means that children will need to inherit from two (or more) parents.

Here are the requirements:

  • 1, 2, or more parents
  • Bonus points if I can attach metadata like a last name or relationship status

Here is…

Top comments (1)

Collapse
 
vagatasa profile image
Vagatasa

Hello. With access to over 130 million cemetery and grave records, I have been able to uncover the most incredible details about my ancestors and their heritage. The wealth of historical sources available on People Legacy (peoplelegacy.com/cemeteries/AL/Che...) is truly impressive, making it one of the largest online repositories of its kind.