function xmlrpc_test_arrayOfStructsTest

1 call to xmlrpc_test_arrayOfStructsTest()
XMLRPCValidator1IncTestCase::testValidator1 in modules/simpletest/tests/xmlrpc.test
Run validator1 tests.
1 string reference to 'xmlrpc_test_arrayOfStructsTest'
xmlrpc_test_xmlrpc in modules/simpletest/tests/xmlrpc_test.module
Implements hook_xmlrpc().

File

modules/simpletest/tests/xmlrpc_test.module, line 3

Code

function xmlrpc_test_arrayOfStructsTest($array) {
    $sum = 0;
    foreach ($array as $struct) {
        if (isset($struct['curly'])) {
            $sum += $struct['curly'];
        }
    }
    return $sum;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.