Rendering Pedigree/Family Tree using HTML table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arrPedigree = array( | |
array( | |
'name' => 'Parent', | |
'children' => array( | |
array( | |
'name' => 'Child 1', | |
'children' => array( | |
array( | |
'name' => 'Sub Child 11', | |
'children' => array( | |
array( | |
'name' => 'Sub Sub Child 111', | |
), | |
array( | |
'name' => 'Sub Sub Child 112', | |
), | |
) | |
), | |
array( | |
'name' => 'Sub Child 12' | |
) | |
) | |
), | |
array( | |
'name' => 'Child 2', | |
'children' => array( | |
array( | |
'name' => 'Sub Child 21' | |
), | |
array( | |
'name' => 'Sub Child 22' | |
) | |
) | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment