PHP - Recursive Multidimension Array iterator

前端 未结 3 2152
野趣味
野趣味 2020-12-16 04:11

I\'m trying to write a recursive array iterator function in which the function will return a result set of all sets that are specified by \'$needle\'. Where $needle = key

3条回答
  •  醉酒成梦
    2020-12-16 04:37

    A tiny modification of your construction:

    $holder = recursive($needle, $value, $holder);

    Ay?

提交回复
热议问题