I need to find out if the value of a key changes on the next round
Ex:
if($manzanas[$key]['cantidad'] == $manzanas[$key + 1]['cantidad']){
echo 'La cantidad de manzanas es la misma';
} else {
echo 'La cantidad de manzanas cambio';
}
That's not how it works and I can not find the right way to do it.