i'm the newbie in php, and i have problem
with multidimensional arrays:
there is a sample from my code:
$a=1;
while ($a <= 5) {
$this->$rights[$a][1] = 'q';
$this->$rights[$a][2] = 'w';
$this->$rights[$a][3] = 'e';
$this->$rights[$a][4] = 'r';
$a++;
}
echo ($this->$rights[1][1]);
echo ($this->$rights[1][2]);
echo ($this->$rights[1][3]);
echo ($this->$rights[1][4]);
the question is why all these 4 echos prints symbol 'r', and not 'q' 'w' 'e' 'r'??
thanks alot