Friends . Read full details to understand problem.
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
now my problem is
i want to copy all array variables av values to var array vaiables.
var array consist variables like " $a1 " many times.
var = array("$a1","$a1","$a1","$a2","$a2","$a3");
var array consist defined order . i want values in that sequence.
i want output
echo "var[0] var[1] var[2] " ;// it display value of $a1
or how create another array which copy values of array vaiables av . and sequence equal to array var
Update 1 :
update 1 :
AV array consist variables suppose 4. a = array ( "$a1" , "$a2" , "$a3", "$a4" ) . // actually i used loop for that its near 20 - 30 variables.
Now I assigned values to $a1 , $a2 , ... using for loop and POST method.
if i write
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