Download this file
18 lines (18 with data), 379 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | <?php
include('../include/phprpc_server.php');
Class Math {
function add($a, $b) {
return $a + $b;
}
function sub($a, $b) {
return $a - $b;
}
function hello($name) {
echo "hello $name";
}
function inc(&$n) {
return ++$n;
}
}
new phprpc_server(array('add', 'sub', 'hello', 'inc'), false, 'Math');
?>
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.