title: PHP array replace after matching value
body: <p>I have an base array like below</p>
  <pre><code>$orgigal = [
            0 =&gt; [
              'month' =&gt; '02',
              'total_sum_coin' =&gt; 0,
            ],
            1 =&gt; [
              'month' =&gt; '03',
              'total_sum_coin' =&gt; 0,
            ],
            2 =&gt; [
              'month' =&gt; '04',
              'total_sum_coin' =&gt; 0,
            ],
      ]
  </code></pre>
  <p>Also have another replacement array like below</p>
  <pre><code>$replace = [
          0 =&gt; [
                 'month' =&gt; '03',
                 'total_sum_coin' =&gt; 10,
          ],
          1 =&gt; [
                  'month' =&gt; '04',
                  'total_sum_coin' =&gt; 20,
          ],
      
      ]
  </code></pre>
  <p>After use replace function</p>
  <pre><code>array_replace($orgigal,$replace)
  </code></pre>
  <p>It's replacing by key, I am trying to replacing it by value after match with months.</p>
  <p>My desire output</p>
  <pre><code>$orgigal = [
            0 =&gt; [
              'month' =&gt; '02',
              'total_sum_coin' =&gt; 0,
            ],
            1 =&gt; [
              'month' =&gt; '03',
              'total_sum_coin' =&gt; 10,
            ],
            2 =&gt; [
              'month' =&gt; '04',
              'total_sum_coin' =&gt; 20,
            ],
      ]
  </code></pre>