Walk array recursively and print the path of the walk

前端 未结 9 1515
礼貌的吻别
礼貌的吻别 2020-12-03 08:03

Can someone help me with some code or instructions on how to walk recursively an array and when reaching the last element print the full path to it? A simple echo will work

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 08:40

    You can add a third parameter which holds the actual path as String. At the end you can output it then.

提交回复
热议问题