Page 1 of 1

stupid question about outputting math stuff

Posted: Sun Apr 04, 2004 3:43 pm
by jojo46
hey, i need to output some math stuff, mainly I have something along these lines...
echo "blah".$i+1."end of blah";
but it won't let me do it in series like that. anyone know how to do it?

Posted: Sun Apr 04, 2004 4:03 pm
by Illusionist
try putting $i+1 in parenthesis: ($i+1)

worked

Posted: Mon Apr 05, 2004 2:20 am
by jojo46
yay, it worked :) appreciate it much bro, thanks