Created
December 7, 2010 16:49
-
-
Save fabrikagency/732038 to your computer and use it in GitHub Desktop.
Most Useless PHP Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SimpleMath { | |
var $a; | |
var $b; | |
var $math; | |
public function add($a, $b){ | |
$math = $a + $b; | |
return $math; | |
} | |
public function subtract($a, $b){ | |
$math = $a - $b; | |
return $math; | |
} | |
public function multiply($a, $b){ | |
$math = $a * $b; | |
return $math; | |
} | |
public function divide($a, $b){ | |
$math = $a / $b; | |
return $math; | |
} | |
} |
Ha, I'd say that's up there too. Did you find it in a production application?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably not the most useless. The most useless would be: