How can I call a function in a class that depends on a user's input.
So if the user sent 2011 I want to call the method $record->show_2011()
if they sent the input 2012 I want to call the method $record->show_2012()
else I want to call $record->show()
How do I pass in the user's input into the method name to call it?