In the process of automating some code, I am looking to call upon a function based on what a string is.
For example, I have a variable $somevar
which is set to the string "This". Now I want to run a function doThis();
So, I was hoping I could write do.$somevar($var,$var2)
. I want it to run doThis($var1,$var2)
.
Is this possible?