skinnypspplayer
New member
Is this possible?
$a = array($variable);
PHP won't let me do it so is there any other way? Am I doing something wrong? This little code is just to add together some MySQL database numbers. I've got the numbers ($variable) and now I'm trying to insert them into an array.
PS: I already know how to add them together, I just don't know how to put the variable into an array.
Thanks.
Well, it's giving me the number '0', but after adding up them myself, it isn't zero. So I'm guessing it's translating the variable to nothing.
$a = array($variable);
PHP won't let me do it so is there any other way? Am I doing something wrong? This little code is just to add together some MySQL database numbers. I've got the numbers ($variable) and now I'm trying to insert them into an array.
PS: I already know how to add them together, I just don't know how to put the variable into an array.
Thanks.
Well, it's giving me the number '0', but after adding up them myself, it isn't zero. So I'm guessing it's translating the variable to nothing.