I have a rather stupid PHP question :D! I would like to simplify the following statement:
function hello_input() {
return 'Hello World';
}
$helper = 'hello';
$helper = $helper . '_input';
$data = $helperinput();
The specific part I want to simplify is the adding of the _input to the $helper so it calls the right function.
I thought of something like this but it doesn't work:
$data = $helper. 'input'();
or
$data = $helper. 'input' . ();
Any ideas?
Thanks, Max