Simple Array Question
Posted: Sat Apr 17, 2010 8:17 pm
In the following:
the value echoed is what I wanted while $George is set to null. What am I doing wrong?
Code: Select all
for ($i=0; $i<5; $i++)
{ $George=$List[$i];
echo $List[$i]; // this works okay
echo $George; // this does not work
}