title: PHP Array: rename key and update values from a given key
body: <p>I have the array:</p>
  
  <pre><code>$array = Array(
        [0] =&gt; Array(
                    [Branch] =&gt; 'Toyota',
                    [Country] =&gt; 'Jpn',
                    [id] =&gt; 'jp01'
        )
        [1] =&gt; Array(
                    [Branch] =&gt; 'Nissan',
                    [Country] =&gt; 'Jpn',
                    [id] =&gt; 'jp05'
        )
        [2] =&gt; Array(
                    [Branch] =&gt; 'Honda',
                    [Country] =&gt; 'Jpn',
                    [id] =&gt; 'jp20'
        ) )
  </code></pre>
  
  <p>What I want to do is:<br>
  1 - Change the key <strong><code>Branch</code></strong> to <strong><code>Brand</code></strong>, but without moving it to the end or the array.<br>
  2 - Update all the values to the key Country, changing <strong><code>Jpn</code></strong> to <strong><code>Japan</code></strong>  </p>
  
  <p>The result should be like this:  </p>
  
  <pre><code>$array = Array(
        [0] =&gt; Array(
                    [Brand] =&gt; 'Toyota',
                    [Country] =&gt; 'Japan',
                    [id] =&gt; 'jp01'
        )
        [1] =&gt; Array(
                    [Brand] =&gt; 'Nissan',
                    [Country] =&gt; 'Japan',
                    [id] =&gt; 'jp05'
        )
        [2] =&gt; Array(
                    [Brand] =&gt; 'Honda',
                    [Country] =&gt; 'Japan',
                    [id] =&gt; 'jp20'
        ) )
  </code></pre>
  
  <p>I really appreciate your help.</p>