title: In PHP, how can I add an underscore between two variable names
body: <p>I have some DB fields called</p>
  
  <pre><code>picture1_en
  picture2_en
  ...
  picture1_de
  picture2_de
  ...
  picture1_it
  picture2_it
  </code></pre>
  
  <p>Yes, it could have been implemented in another way, but I cannot change the implementation.</p>
  
  <p>Suppose I have a variable called $lang that contains "de" or "en" or "it"<br>
  Now, if I want to print the value, I could use this:</p>
  
  <pre><code>for($i=1; $i&lt;=10; ++$i)
    echo $r["picture$i_$lang"];
  </code></pre>
  
  <p>The problem is that PHP interprets the underscore as part of the variable name (e.g. it interprets it as "$i_"). I tried escaping the underscore in a lot of crazy ways, none of them working.</p>
  
  <p>Sure, I could do</p>
  
  <pre><code>echo $r["picture".$i."_".$lang];
  </code></pre>
  
  <p>But I was wondering if there is a way to force PHP to interpret the "_" as a string literal, and not as a part of a variable name.</p>