View Single Post
Old 03-27-2008, 04:46 PM   #4 (permalink)
ETbyrne
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

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.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote