Tests XMLRPC API by adding two numbers for client.
Parameters
$args
arrayrequired- Method arguments. Note: arguments must be ordered as documented.
0
intA number to add.1
intA second number to add.
Source
public function addTwoNumbers( $args ) {
$number1 = $args[0];
$number2 = $args[1];
return $number1 + $number2;
}
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.