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

Accessing arrays in template

Discussion in 'XenForo Development Discussions' started by Farjad, Jul 18, 2011.

  1. Farjad

    Farjad Member

    I was wondering how would one go about accessing an array like this for example (in php): $arg[$id]['value']

    I noticed I could do $arg.1.value but I want to replace the 1 with a variable... is it possible?
  2. Farjad

    Farjad Member

    Welp, I figured it out... turns out {$arg.{$id}.value} works

Share This Page