Given line:
"$className = "MForm" . preg_replace('/(?:^|_)(.?)/e',"strtoupper('$1')",$name);"
isn't working with PHP7. I changed it to:
"$className = "MForm" . preg_replace_callback('/(?:^|_)(.?)/',"strtoupper('$1')",$name);"
It seems not to be correct, due to warning printout:
"Warning: preg_replace_callback(): Requires argument 2, 'strtoupper('$1')', to be a valid callback in /.../components/com_proforms/formlib/init.php on line 59"
How can I handle strtoupper('$1')
correctly in preg_replace_callback()?