function simpletest_xmlrpc_arrayOfStructsTest in SimpleTest 5
Same name and namespace in other branches
- 6 simpletest_xmlrpc.module \simpletest_xmlrpc_arrayOfStructsTest()
1 call to simpletest_xmlrpc_arrayOfStructsTest()
1 string reference to 'simpletest_xmlrpc_arrayOfStructsTest'
- simpletest_xmlrpc_xmlrpc in ./
simpletest_xmlrpc.module - Implementation of hook_xmlrpc()
File
- ./
simpletest_xmlrpc.module, line 20
Code
function simpletest_xmlrpc_arrayOfStructsTest($array) {
$sum = 0;
foreach ($array as $struct) {
if (isset($struct['curly'])) {
$sum += $struct['curly'];
}
}
return $sum;
}