Posted by Oli Filth on 04/03/06 04:20
paladin.rithe@gmail.com said the following on 02/04/2006 20:57:
> Mainly because I have a bunch of variables that I want to be able to
> set via their respective functions.
Yes, but why?
> Mainly, it's an output system
> where each variable is a different id in the html. Via the
> XMLHttpRequest of JavaScript, when these are printed, they will be
> called as JavaScript Code via eval().
What do you mean "they will be called as Javascript code"? And why does
eval() come into it?
> While I can write functions that
> take care of all the variables, I thought it would be easier to just
> have one that does the same thing to all of them.
How is calling foo($val) any more useful than $foo = $val; ?
I think you will need to provide an example of what you're trying to do...
--
Oli
[Back to original message]
|