<pre>Checking 291<br />Checking children of 291<br />There are children for 291<br />Checking 1034<br />Checking children of 1034<br />There are children for 1034<br />Checking 111<br />Checking children of 111<br />Checking 1035<br /><strong>Yay we found 1035</strong><br /><strong>Need to find a way to break out!</strong><br />Checking 1024<br />Checking children of 1024<br /><br /><strong>Found it!</strong><br />Array
(
[id] => 1035
[lft] => LEFT
[children] => Array
(
[0] => Array
(
[id] => 1036
[children] => Array
(
[0] => Array
(
[id] => 222
[someKey] => some value
[children] => Array
(
)
)
)
)
[1] => Array
(
[id] => 333
[someKey] => some value
[children] => Array
(
)
)
)
)
</pre>
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
<pre>Checking 291<br />Checking children of 291<br />There are children for 291<br />Checking 1034<br />Checking children of 1034<br />There are children for 1034<br />Checking 111<br />Checking children of 111<br />Checking 1035<br /><strong>Yay we found 1035</strong><br /><strong>Need to find a way to break out!</strong><br />Checking 1024<br />Checking children of 1024<br /><br /><strong>Found it!</strong><br />Array
(
[id] => 1035
[lft] => LEFT
[children] => Array
(
[0] => Array
(
[id] => 1036
[children] => Array
(
[0] => Array
(
[id] => 222
[someKey] => some value
[children] => Array
(
)
)
)
)
[1] => Array
(
[id] => 333
[someKey] => some value
[children] => Array
(
)
)
)
)
</pre>