I want to change auto remove the $ sign on the fly> I have tried the following.. since the array is named $param i tried. Should produce an error along with many others as your code is completely wrong and should be spitting and hissing errors out left, right and centre. Sorry if this sounds harsh, but I suggest that you go back over the details of where you have tried to learn this from. The first code you have shown is wrong on each and every line and uses old code.
I didn't find the right solution from the Internet.