title: PHP dynamically reference variable in string literal
body: <p>I have multiple PHP variables in the form</p>
  
  <pre><code>$number1, $number2, $number3 and so on...
  </code></pre>
  
  <p>I would like to dynamically reference these inside of a loop to retrieve information from them, but am not sure how to reference the static variable dynamically. Ex:</p>
  
  <pre><code>for($i = 1; $i &lt;= 10; $i++) {
      //The first number to be printed should be the value from
      //$number1 not $number concatenated to $i
  
      //here are some of the strings I tried:
      echo "$number$i";
      echo "{$number}$i";
      echo "{$number}{$i}";
  }
  </code></pre>