Substitute column value in each row of a 2d array based on other rows in the same array – PHP
I have an array like so: $array = [ ['record' => 1, 'sponsor' => 2, 'email' => '[email protected]'], ['record' => 2, 'sponsor' => 2, 'email' => '[email protected]'], ['record' => 3, 'sponsor' => 2, 'email' => '[email protected]'], ['record' => 4, 'sponsor'…