I am having trouble understanding this problem.
I have defined a multidimensional array but cannot echo values from it.
print_r($_POST) gives this:
Array
(
[title] => zxfvsdf
[purchaseDecision] => on
[optcolumn] => 2
[optrow] => 2
[opt] => Array
(
[0] => Array
(
[0] => asd
)
[1] => Array
(
[0] => 123
)
[2] => Array
(
[0] => vbn
)
[3] => Array
(
[0] => yui
)
)
)
But echo $opt[0][0] returns 'undefined variable: opt'.
I am sure I am missing something quite basic...
Any help is greatly appreciated.