i have problems with part of my code. In my local machine this code works, i have php7
$totals = array_values(
array_count_values(
array_map(function($x)
{
return explode('-', $x)[0];
}, $arraySKU2)
)
);
This is the error that i get on server that have php version 5.3.3.
Parse error: syntax error, unexpected '[' in
I tried to find solution on internet, but i didnt make it. Can someone help me please, i dont know how to write changes?