title: How copy value of Php array variable to another array
body: <p>Friends . Read full details to understand problem.</p>
  
  <pre><code> av = array("$a1","$a2","$a3"); //  used here loop for that to create auto varibles
  
   av[i] = $_POST("***"); // something code ...which assign values to array   using loop
  
   echo " $a1 $a2  " // its display correct value
  </code></pre>
  
  <p>now my problem is</p>
  
  <p>i want to copy all array variables <strong>av</strong> values to <strong>var</strong> array vaiables.</p>
  
  <p>var array consist variables like " $a1 " many times.</p>
  
  <pre><code>             var = array("$a1","$a1","$a1","$a2","$a2","$a3");
  </code></pre>
  
  <p><strong>var</strong> array consist defined  order . i want values in that sequence.</p>
  
  <p>i want output           </p>
  
  <pre><code>           echo  "var[0] var[1] var[2] " ;// it display value of $a1
  </code></pre>
  
  <p>or how create another array which copy values of array vaiables  <strong>av</strong> . and sequence equal to array <strong>var</strong></p>
  
  <p>Update 1 : </p>
  
  <p>update 1 : </p>
  
  <p>AV array consist variables suppose 4. a = array ( "$a1" , "$a2" , "$a3", "$a4"  ) . // actually i used loop for that its near 20 - 30 variables.</p>
  
  <p>Now I  assigned values to $a1 , $a2 , ... using for loop and POST method.</p>
  
  <p>if i write</p>
  
  <pre><code>         echo  " a[0] " ;  // it display $a1
  
           echo " a1 = $a1"; // it display  actual value that i need eg. a1= 555
  
         $v = array ( "$a1" , "$a1" ,"$a1" , "$a1");
  
         now  i want To print array $v with value. 
  
        now $v[0] consist value $a1. 
        if i print $v[0] it display $a1. but i need value of $a1 i.e 555
  
         OR same $v array with actual variables values with same order 
  </code></pre>