PHP Addition?

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
thefreebielife
Forum Contributor
Posts: 126
Joined: Thu Apr 26, 2007 2:59 pm

PHP Addition?

Post by thefreebielife »

For example,

Code: Select all

 if ($count2 $ostatus >= $gref
I need it to be that if count2 AND ostatus added together are greater then or equal too.

Thanks,
Jared
User avatar
Chalks
Forum Contributor
Posts: 447
Joined: Thu Jul 12, 2007 7:55 am
Location: Indiana

Post by Chalks »

Code: Select all

if(($count2+$ostatus)>=$gref)
{
//do stuff
}

edit: at least, that's what I'm assuming. I'm still new enough to php that I haven't actually had to do that yet...
edit 2: try it! :D
Post Reply