Php – Remove consecutive duplicates from an array
As part of a larger project, I'm receiving arrays in a form similar to this: $out = array( '2011' => ['Out', 'arrv'], '2012' => ['Out'], '2013' => ['Out'], '2014' => ['Out'], '2015' => ['Out'], '2016' => ['some', 'none', 'test'], '2017'…