DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 967,911 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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…

Latest comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.