summaryrefslogtreecommitdiff
path: root/tests/cpp/include/testValueIterator.h
blob: a9329c913dbb689382d7f57b89cef14bacc7f71a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 *
 *  TestValueIterator
 *
 */

/**
 *  Set up namespace
 */
namespace TestValueIterator {

    
    void loopValue(Php::Parameters &params)
    {
        std::cout << "Array/Object contains " << params[0].size() << " items" << std::endl;
        for (auto it=params[0].begin(), itend = params[0].end(); it != itend; ++it) {
            std::cout << "["<< it->first << "]="<< it->second << std::endl;
            //std::cout << "["<< it->key() << "]="<< it->value() << std::endl;
        }
        return;
    }

/**
 *  End of namespace
 */
}