retrieve array elements (smarty)

I need to retrieve an array element in my template using smarty.
this is my array:
how can I get
?
I mean
Thanx
this is my array:
- Code: Select all
[[assign var=foo value=$entry.extrafields.tank|explode:"|"]]
how can I get
- Code: Select all
$foo[0]
?
I mean
- Code: Select all
[[$foo[0]]]
Thanx