Trying to output the index # of an array in twig, having trouble finding it in the docs. Anyone know how to get it?
array(2) {
[0]=>
array(2) {
["testimonial"]=>
string(18) "Derby Heist Test 1"
["author"]=>
string(6) "test 1"
}
[1]=>
array(2) {
["testimonial"]=>
string(18) "Derby Heist Test 2"
["author"]=>
string(6) "test 2"
}
}
so I'd like to output the index numbers 0 and 1 in a for loop. Please help.