summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/019-HashMember-1.h
blob: 28003f0f39884143a7164cfcd4aeabfdb620f055 (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
/**
 *
 *  Test variables
 *	019-HashMember-1.phpt
 *	Test HashMember
 *
 */




/**
 *  Set up namespace
 */
namespace TestVariables {

	/**
	 *  This function returns complex array
	 */
	Php::Value test_HashMember_1()
	{
	    Php::Value r, tmp(Php::Type::Array);
	    r["key1"] = tmp;
	    r["key1"]["key2"] = "val2";
	    r["key1"]["key3"] = "val3";
	    return r;
	}

/**
 *  End of namespace
 */
}