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 addi
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. S
-Original Message-
> From: Bronislav 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:
>
> $items = ar
I'm not sure, if I understood, but try this:
array ("item"=>"car","price"=>1, "tax"=>0.06 ),
1 => array ("item"=>"pencil","price"=>1, "tax"=>0.06 ),
2 => array ("item"=>"book","price"=>14.95, "tax"=>0.065)
);
function GetTax($item){
return $item["price"]*$item["tax"];
}
func
4 matches
Mail list logo