Re: [PHP] Math with php

2003-06-10 Thread Jim Lucas
as to the results you are looking for. Jim Lucas - Original Message - From: "Frank Keessen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 2:22 PM Subject: [PHP] Math with php > Hi, > > Hope you can help me: > > How can i do

[PHP] Math with php

2003-06-10 Thread Frank Keessen
Hi, Hope you can help me: How can i do the following in PHP: When a variable is for example: $a = 7 I must do the following 6 * X and 1 * Y, but when $a = 4 it must only do 4 * X. So every when the value is odd i must do # * X and # * Y.. Some examples or hints are very welcome! Sory that