summaryrefslogtreecommitdiff
path: root/tests/cpp/include/valueiterator/001-006.h
blob: 0dc677832d854787f4a4185fb58b8fb816d79351 (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
 *	test valueiterator/001.phpt-valueiterator/006.phpt
 *
 */

/**
 *  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
 */
}