Array problem
Posted: Mon Mar 20, 2006 5:20 am
Hi,
I am having a problem with an array, take a look at the code below:
As you can see I am trying to write the contents of a variable into an array with the same name as the original variable. I have also tried using a temp variable as a buffer but it does not work. When I try to echo the array I just get the value 1. Do I need to some how empty or flush the variable name before I can achieve my aim?
Thanks,
Rob.
I am having a problem with an array, take a look at the code below:
Code: Select all
$variable=123456;
$variable[0]=$variable;
echo"$variable";Thanks,
Rob.