Create new column in 2d array that represents the count of related values in another 2d array – PHP
I have an array that contains data of incoming mail, looks something like this: $incomingMail = [ 0 => [ 'title' => 'Title 1', 'areaCode' => 101 ], 1 => [ 'title' => 'Title 2', 'areaCode' => 101 ], 2…