You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`traverseDepthFirst`](#Traverse-Depth-First)| Iterates a tree using depth-first search |`TreeWalker::traverseDepthFirst($data, $childrenContainerKey)`|
22
+
|[`traverseBreadthFirst`](#Traverse-Breadth-First)| Iterates a tree using breadth-first search |`TreeWalker::traverseBreadthFirst($data, $childrenContainerKey)`|
23
+
24
+
## Usage
25
+
26
+
### Tree Walker
27
+
28
+
#### Traverse-Depth-First
29
+
30
+
Iterates a tree like a flat collection using depth-first traversal.
31
+
32
+
If `$childrenContainerKey` is not null looks for children items using by this key only.
33
+
34
+
Otherwise, considers any subarray to contain children.
0 commit comments