0 ? 'child' : 'parent'; $indentClass = $level > 0 ? 'indent' : ''; echo ""; echo "" . htmlspecialchars($role['id']) . ""; echo "" . htmlspecialchars($role['notes']) . ""; echo "" . htmlspecialchars($role['parent_id']) . ""; echo "" . htmlspecialchars($role['max_nodes_per_pid']) . ""; echo ""; echo ""; echo ""; // Recursive call to display child roles displayRoles($roles, $role['id'], $level + 1); } } } ?>