03-27-2008, 04:46 PM
|
#4 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
Just a note. Instead of doing this...
PHP Code:
$add = Calculation::Add ($num1,$num2); $subtract = Calculation::Subtract ($num1,$num2); $multiply = Calculation::Multiply ($num1,$num2); $divide = Calculation::Divide ($num1,$num2);
...You could do this instead if you wanted:
PHP Code:
$math = new Calculation(); $add = $math->Add($num1,$num2); $subtract = $math->Subtract($num1,$num2); $multiply = $math->Multiply($num1,$num2); $divide = $math->Divide($num1,$num2);
Just another way to do the same thing. 
|
|
|
|