summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/002-get_complex_array.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/include/variables/002-get_complex_array.h')
-rw-r--r--tests/cpp/include/variables/002-get_complex_array.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/cpp/include/variables/002-get_complex_array.h b/tests/cpp/include/variables/002-get_complex_array.h
new file mode 100644
index 0000000..b12e5ee
--- /dev/null
+++ b/tests/cpp/include/variables/002-get_complex_array.h
@@ -0,0 +1,35 @@
+/**
+ *
+ * Test variables
+ * 002-get_complex_array.phpt
+ *
+ */
+
+
+
+
+/**
+ * Set up namespace
+ */
+namespace TestVariables {
+
+ /**
+ * This function returns complex array
+ */
+ Php::Value get_complex_array()
+ {
+ Php::Value r;
+ r["a"] = 123;
+ r["b"] = 456;
+ r["c"][0] = "nested value";
+ r["c"][1] = "example";
+ r["c"][2] = 7;
+ return r;
+ }
+
+
+/**
+ * End of namespace
+ */
+}
+