title: Call-time pass-by-reference error, Unable to fix the code
body: <p>Since I updated to php 5.4 i get the error  Call-time pass-by-reference has been removed, as i read, removing the <code>&amp;</code> should solve it. It does, but now my code does not work anymore.</p>
  
  <p>I need to make an Associative Array out of the string raw400, with the keys beeing t and f plus the number (example t410 and f410) and the value must be the value after the - without the -</p>
  
  <p>Example:</p>
  
  <pre><code>t410-1:06,f410-15.4
  </code></pre>
  
  <p>schould become:</p>
  
  <pre><code>key: t410
  value: 1:06
  
  key: f410
  value 15.4
  </code></pre>
  
  <p>The code..</p>
  
  <pre><code>$raw400 = 't410-1:06,f410-15.4,t390-1:06,f390-15.6,t370-1:05,f370-16.0,t350-1:05,f350-16.2,t330-1:04,f330-16.3,t310-1:00,f310-16.7';
  
  $array = explode(',',$raw400);
  $nm400 = array();
  array_walk($array,'walk', $nm400);
  function walk($val, $key, $nm400){
  $nums = explode('-',$val);
  $nm400[$nums[0]] = $nums[1];
  }
  </code></pre>
  
  <p>Help is greatly appreciated, thanks.</p>