title: Dynamically create PHP class functions
body: <p>I'd like to iterate over an array and dynamically create functions based on each item. My pseudocode:</p>
  
  <pre><code>$array = array('one', 'two', 'three');
  
  foreach ($array as $item) {
      public function $item() {
          return 'Test'.$item;
      }
  }
  </code></pre>
  
  <p>How should I go about doing this?</p>