summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/002-get_complex_array.h
blob: b12e5ee7b5a5520e507c792c67470a515fd7d85a (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
28
29
30
31
32
33
34
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
 */
}