summaryrefslogtreecommitdiff
path: root/tests/cpp/include/ValueIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/include/ValueIterator.h')
-rw-r--r--tests/cpp/include/ValueIterator.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/cpp/include/ValueIterator.h b/tests/cpp/include/ValueIterator.h
new file mode 100644
index 0000000..a9329c9
--- /dev/null
+++ b/tests/cpp/include/ValueIterator.h
@@ -0,0 +1,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
+ */
+}
+