In my case I am having the following array:
$array = [[01], [01,02], [01,02,03], [01,02,03,04], [01,02,03,04,05], [01,02,03,04,05,06]];
So from above array, I need only the last array which contains
[01,02,03,04,05,06]
In my case I am having the following array:
$array = [[01], [01,02], [01,02,03], [01,02,03,04], [01,02,03,04,05], [01,02,03,04,05,06]];
So from above array, I need only the last array which contains
[01,02,03,04,05,06]
For you to get an idea of how it is done, I'm writing this answer using JS
var myArray = [[01], [01,02], [01,02,03], [01,02,03,04], [01,02,03,04,05], [01,02,03,04,05,06]]
var lastElement = myArray[myArray.length - 1]
console.log(lastElement)