title: creating associative array from multi dimensional array
body: <p>I am using this code to get all key and values from multi dimensional array but could not send them to an array to outside function, sure I am missing some thing.</p>
  
  <pre><code>$users = array();
  function myfunction($value,$key)
  {
      $users[$key] = $value;     
  }            
  array_walk_recursive($data['userlevel3'],"myfunction");
  </code></pre>