string add(
mixed
$val, string
$path)
|
|
Add an element as a child of $path.
Non existing intermediate nodes will be created with null content. Existing nodes will silently be overwritten. To simply change the value of a node use set(), it's faster. The method returns the path of the new node.
Parameters:
array order(
[integer
$order = ISTER_TREE_PREORDER])
|
|
Get the leaf nodes of the tree as an one dimensional array.
Possible values of $order: ISTER_TREE_PREORDER, ISTER_TREE_POSTORDER, ISTER_TREE_LEVELORDER.
Parameters: