How can I find an replace an array value based on another value in the same multidimensional array – PHP
So I have a multidimensional array like the one below: [0]=> array(4) { ["id"] => 110 ["list"] => {} ["MainProduct"] => 2 <- Step2: Replace the 2 with a 5 where productName is Oranges ["productName"] => Oranges <- Step1: Find…