title: PHP join two variable names
body: <p>I have a php script that gets a <code>$_POST</code> to decide which array to return. Ex:</p>
  
  <pre><code>$n = $_POST['n']; // 1, 2 or 3
  
  $a1 = array ('something', 'something else', 'another thing');
  
  $a2 = array ('something 2', 'something else 2', 'another thing 2');
  
  $a3 = array ('something 3', 'something else 3', 'another thing 3');
  </code></pre>
  
  <p>now I want to get the array that corresponds to the <code>$n</code> value, let's say <code>"2"</code>.</p>
  
  <p>How can I say <code>echo $a . $n</code> to get <code>$a2</code></p>
  
  <p>Thanks.</p>