I\'d like to iterate over an array and dynamically create functions based on each item. My pseudocode:
$array = array(\'one\', \'two\', \'three\'); foreach
Not sure about the usage in your case, you can use create_function to create anonymous functions.