I am sending a variable to a function and it only works if I hard code it. But it doesn't work when I do it the way I want to.
$item = $REQUEST['buy'] . "Info" . '("' . $REQUEST['type'] . '")';echo $item;//This == " BootsInfo("Alpine")
"
That is what doesn't work. It gives me back a "B"??
I also tried:
$item = $REQUEST['buy'] . Info($REQUEST['type']);
which gives me back Call to undefined function: info()
Here is what works:
$item = BootsInfo("Alpine");echo $item;//This == " BootsInfo("Alpine")
"
But this works and I get back what I want.
They look the same to me, where am I missing?