Hi everyone 🙂
I've got a bit of a problem that I can't seem to work out how to do in php.
Here it goes:
I have a set of variables with names like:
$business_name, $address ect.
and I also have another set called
$o_business_name, $o_address ect matching each of the first set.
Now I know that's a strange thing to do, but nevertheless I want to stick with it for now.
So... what I want to do is in my code I pic a varable from the first set due to some algorithm.
eg... $business_name gets picked. I then want to imediatly refer to it's matching variable $o_business_name. How do I do this?
I want to append $o_ to the <b>name</b> of whatever variable gets picked and refer to that new variable name (minus the extra '$' of course)
is that possible? can you modify varable names and then refer to the new variables value in your code?
ha... does anyone even get me? probably not. sorry... I don't explain very well... well.. I hope someone does.
thanks though 🙂