diff options
Diffstat (limited to 'tests/cpp/include/testValueIterator.h')
-rw-r--r-- | tests/cpp/include/testValueIterator.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/cpp/include/testValueIterator.h b/tests/cpp/include/testValueIterator.h new file mode 100644 index 0000000..a9329c9 --- /dev/null +++ b/tests/cpp/include/testValueIterator.h @@ -0,0 +1,27 @@ +/** + * + * TestValueIterator + * + */ + +/** + * Set up namespace + */ +namespace TestValueIterator { + + + void loopValue(Php::Parameters ¶ms) + { + 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 + */ +} + |