How is the way to count length of string in array:
$mainArray = [
[4],
[3, 4],
[2, 30, 43, 65, 53, 634]];
Output desired:
1
1,1
1,2,2,2,2,3
My ideia is change to string use string count function, but have the way to do direct on array?