stupid question about outputting math stuff

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jojo46
Forum Newbie
Posts: 7
Joined: Fri Feb 27, 2004 7:01 pm

stupid question about outputting math stuff

Post 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?
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

try putting $i+1 in parenthesis: ($i+1)
jojo46
Forum Newbie
Posts: 7
Joined: Fri Feb 27, 2004 7:01 pm

worked

Post by jojo46 »

yay, it worked :) appreciate it much bro, thanks
Post Reply