Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4aba2ee89b
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.38 kb
<?php
require_once("pajax/PajaxRemote.class.php");
class Calculator extends PajaxRemote {
function Calculator() {
}
function add($x, $y) {
return $x + $y;
}
function multiply($x, $y) {
return $x * $y;
}
function substract($x, $y) {
return $x - $y;
}
function divide($x, $y) {
if ($y != 0) {
return $x / $y;
} else {
return null;
}
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.