Question:
function calculate($price, $price2="", $price3="")
{
  echo $price + $price2 + $price3;
}
You can then call calculate(), passing along just $price and $price3, like so: calculate(10, "", 3); This returns the following value: 

A 13 

B 10, "", 3 

C 10,00, 3 

D 10null3 

+ Answer
+ Report
Total Preview: 1006

Copyright © 2024. Powered by Intellect Software Ltd