Hello,
I have got some problems using a two dimensional array in an if expression:
PHP does not like:
if (table[$j]["banana"]==0)
and says:
Parse error: parse error, unexpected '[' in script.php on line 203
"if ({table[$j]["banana"]==0})" was also not accepted, can anyone help `?
I would also use the value in a two dimensional array as an index for another array:
$array[{table[$j]["banana"]}]
PHP does not like this, too. Can anyone help me here ?
Cheers,
Peter
I have got some problems using a two dimensional array in an if expression:
PHP does not like:
if (table[$j]["banana"]==0)
and says:
Parse error: parse error, unexpected '[' in script.php on line 203
"if ({table[$j]["banana"]==0})" was also not accepted, can anyone help `?
I would also use the value in a two dimensional array as an index for another array:
$array[{table[$j]["banana"]}]
PHP does not like this, too. Can anyone help me here ?
Cheers,
Peter
Comment