title: Jquery How to get Assign in for Loop
body: <p>I'm working with TPL-Files. I assigned variables in PHP to my TPL FILE.</p>
  
  <p>For Example:</p>
  
  <pre><code>ArtikelID1 = 10
  ArtikelID2 = 20
  ArtikelID3 = 30
  </code></pre>
  
  <p>Now I have a Jquery Loop and want to get them.</p>
  
  <p>My Problem is i cant get the assigned variable.</p>
  
  <p><code>{$ArtikelNr1}</code> works but what i want to do is</p>
  
  <pre><code>for($a = 1; $a &lt;= $artikelAnzahl; $a++){
        /* $artikelID = '{$ArtikelNr1}'; */
        $artikelNr = '{$ArtikelNr + $a}';
  
  }
  </code></pre>
  
  <p>But this don't work..</p>
  
  <p>Please Help.</p>
  
  <p>Thanks</p>
  
  <p>Edit:</p>
  
  <pre><code>if($a == 1){
       $artikelNr = '{$ArtikelNr1}';
       $artikelSource = '{$ArtikelSource1}';
  }
  else if($a == 2){
       $artikelNr = '{$ArtikelNr2}';
       $artikelSource = '{$ArtikelSource2}';
  }
  else if($a == 3){
       $artikelNr = '{$ArtikelNr3}';
       $artikelSource = '{$ArtikelSource3}';
  }
  
  
  
  insertArticle($artikelSource, $artikelNr);
  </code></pre>
  
  <ul>
  <li>This is working but i dont want to make a if for all assigned
  Article Ids i want to get it dynamicly with $a</li>
  </ul>