Skip to content

Instantly share code, notes, and snippets.

@fabrikagency
Created December 7, 2010 16:49
Show Gist options
  • Save fabrikagency/732038 to your computer and use it in GitHub Desktop.
Save fabrikagency/732038 to your computer and use it in GitHub Desktop.
Most Useless PHP Class
<?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;
}
}
@mediaslave
Copy link

Probably not the most useless. The most useless would be:

<?php
class Klass{

}

@fabrikagency
Copy link
Author

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