Get element out of array

in my template I have an array that is [api_id_000_111]
How can I get it out as a string?
Thanks in advance

What template? What array? What string?

if [something] is the array you are talking about then $array[0] is “something” if you defined $array := [something]. But from what you give us we don’t have much to speculate on.

Yes, I wrote that with panic. But thanks for the answer. It was so obvious. Have a nice day