title: PHP foreach change array value
body: <p>When you have a foreach loop like below, I know that you can change the current element of the array through <code>$array[$key]</code>, but is there also a way to just change it through <code>$value</code>?</p>
  
  <pre><code>foreach($array as $key =&gt; $value){
  
  }
  </code></pre>
  
  <p>It's probably really simple, but I'm quite new to PHP so please don't be annoyed by my question :)</p>