[PHP] fighting with functions

2003-11-21 Thread Sara Daugherty
I could use a little help. click on the link to see my php code for a project that creates an array with a list or items and their cost and calculates tax by using a function called getTax() and also creates a balance by adding the cost plus the tax in a second function called getBalance(). I

RE: [PHP] fighting with functions

2003-11-21 Thread Bronislav Klucka
]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; Michael Roush; Chris Hubbard Subject: [PHP] fighting with functions I could use a little help. click on the link to see my php code for a project that creates an array with a list or items and their cost and calculates tax by using a function called getTax

RE: [PHP] fighting with functions

2003-11-21 Thread Bronislav Klucka
Klucka [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 8:31 AM To: PHP Konference; Sara Daugherty Subject: RE: [PHP] fighting with functions I'm not sure, if I understood, but try this: ?php $items = array ( 0 = array (item=car,price=1, tax=0.06 ), 1 = array (item

Re: [PHP] fighting with functions

2003-11-21 Thread Evan Nemerson
First off, please try to refrain from cross-posting, especially to that degree. I'm not sure I interpreted the your intentions correctly. If not, could you try to be a little more precise in saying what you _want_ the code to do? The first thing that jumps out at me is in the function getTax.

Re: [PHP] fighting with functions

2003-11-21 Thread Tom Rogers
Hi, Friday, November 21, 2003, 7:56:34 PM, you wrote: SD I could use a little help. click on the link to see my php code for a SD project that creates an array with a list or items and their cost and SD calculates tax by using a function called getTax() and also creates a SD balance by adding