<?php $arr = [0,1,[0,1,[0,1]]]; $dir = new RecursiveArrayIterator($arr); $it = new RecursiveCallbackFilterIterator($dir, function(){return true;}); var_dump($it->hasChildren());
You have javascript disabled. You will not be able to edit any code.