title: Array_map function in php with parameter
body: <p>I have this  </p>
  
  <pre><code>$ids = array_map(array($this, 'myarraymap'), $data['student_teacher']);
  
  function myarraymap($item) {
      return $item['user_id'];
  }
  </code></pre>
  
  <p>I will would like to put an other parameter to my  function to get something like</p>
  
  <pre><code>function myarraymap($item,$item2) {
      return $item['$item2'];
  }
  </code></pre>
  
  <p>Can someone can help me ?  I tried lots of things but nothing work</p>