Hi guys,
i have one problem with multidimensional array.
I fill the field in multiple files (6-7 of them) like this:
$data[‘zone’.$zone][$code_row[‘position’]][] = $code_row[‘code’];
first dimension can be zone1, zone2, zone3…
second dimension is numbers like 10,11,12,20,25,100… (there can be more separate arrays )
third dimension is html code but i need key 0 for that third dimension
So my array should look like:
$data[zone1][10][0][…]
This code works fine on PHP 7.0 but now I need to update it on PHP 7.3 and its not working.
Error i get is:
Uncaught Error: Cannot use string offset as an array in /var/www/clients/client1/web35/web/inc/print_menu.php:651 Stack trace: #0 /var/www/clients/client1/web35/web/inc/get_content.php(54): include() #1 /var/www/clients/client1/web35/web/index.php(151): include(’/var/www/client…’) #2 {main} thrown in /var/www/clients/client1/web35/web/inc/print_menu.php on line 651
Anyone can help?
Thanks