title: PHP - Accessing variables dynamically
body: <p>Is there a way, in PHP, to change which variable is being changed based on another factor. Example:</p>
  
  <pre><code>$str1 = "The string is 1";
  $str2 = "The string is 2";
  $str3 = "The string is 3";
  $X = 3;
  echo $strX;
  
  &gt;&gt; "The string is 3."
  </code></pre>
  
  <p>Edit: Thanks that's exactly what I needed :)</p>