• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Accessing PHP variables in templates

#1
I've had a lot of success using the callback system for Xenforo pages to return php variables. My question is that if I know the index into an array, how to I get the value out of the array. Something like :

Code:
<div id="Foo">
<b>Bar: </b> {$myArray[{$index}]}
</div>
Doesn't seem to work. Is there a way to access the element at a specific index in the array object from the xenforo templates?