title: Difference between array_filter() and array_map()?
body: <p>I looked into the similar topics in web as well stack overflow, but could get this one into my head clearly. <a href="https://stackoverflow.com/questions/3432257/difference-between-array-map-array-walk-and-array-filter">Difference between array_map, array_walk and array_filter</a></p>
  
  <pre><code>&lt;?php
  error_reporting(-1);
  
  $arr = array(2.4, 2.6, 3.5);
  
  print_r(array_map(function($a) {
      $a &gt; 2.5;
  },$arr));
  
  print_r(array_filter($arr, function($a){
      return $a &gt; 2.5;
  }));
  
  ?&gt;
  </code></pre>
  
  <p>The above code returns me a filtered array whose <strong>value is > 2.5</strong>. Can i achieve what an <code>array_filter</code> does with an <code>array_map</code>?.</p>