title: Associative array replace
body: <p>These arrays contains same keys simple like follow topic (<code>prop</code> is unique): 
  <a href="https://stackoverflow.com/questions/24760004/check-if-associative-array-contains-value-and-retrieve-key-position-in-array">Check if associative array contains value, and retrieve key / position in array</a></p>
  
  <pre><code>&lt;?php
  $array = array(
  array("prop" =&gt; "1", "content" =&gt; "text"),
  array("prop" =&gt; "2", "content" =&gt; "text"),
  array("prop" =&gt; "3", "content" =&gt; "text"),
  array("prop" =&gt; "4", "content" =&gt; "text")
  );
  $found = current(array_filter($array, function($item) {
    return isset($item['prop']) &amp;&amp; 3 == $item['prop'];
  }));
  print_r($found);
  </code></pre>
  
  <p>I got <code>prop</code> 3:   </p>
  
  <pre><code>Array
  (
    [prop] =&gt; 3
    [content] =&gt; text
  )
  </code></pre>
  
  <p>So I want to replace value in <code>$array</code> with:</p>
  
  <pre><code>array("prop" =&gt; "3", "content" =&gt; "replaced text")
  </code></pre>