title: creating variable name by concatenating strings in php
body: <p>I have a file named questions.php with an array as follows :</p>
  
  <pre><code>$question12 = array("Which is the tallest mountain","Mt Everest");
  </code></pre>
  
  <p>I am including this file in another file as follows :</p>
  
  <pre><code>require_once('questions.php');
  $var = 12;
  $question = '$question'.$var.'[0]';
  echo $question;
  </code></pre>
  
  <p>The above code just outputs the following <strong>string</strong> (not the contents of the variable):</p>
  
  <pre><code>$question12[0]
  </code></pre>
  
  <p>But I want the variable <strong>$question</strong> to contain the string present in <strong>$question12[0]</strong>.</p>
  
  <p>How do I accomplish this?</p>