title: how to pass params to a function that gets returned?
body: <pre><code>function callme() {
      //stuff
      return function($type = '%') use (&amp;$data) {
          //stuff goes here
          return $data;
      };
  }
  </code></pre>
  
  <p>How can I pass a param to overwrite <code>$type</code></p>
  
  <p>I just need some examples.</p>