// Recursive function to find the correct parent for a new node
function findParentForChild($value, $treeIndexToStart, $tree) {
// Recursive function to find the correct parent for a new node
function findParentForChild($value, $treeIndexToStart, $tree) {