Anyway.
On the receiving end I'm running into the problem that I have to know the variable name before I try to output it, but I don't want to hardcode it.
I'd want something to the effect of:
Code: Select all
for ($i = 0; $i < $noofelements; $i++)
echo ($name+$i);In javascript you can use the eval() function to turn a string into an executable statement, I'm just wondering if there's an equivalent in php or someone knows how to help me with this problem.
Thanks ahead of time,
Justin