From eea207153c62201cd1a0f2d5e4caf260919f5e9b Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sat, 7 Dec 2013 14:47:34 -0800 Subject: Implemented operator overloading for hash members --- Examples/Globals/globals.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Examples') diff --git a/Examples/Globals/globals.cpp b/Examples/Globals/globals.cpp index 6fa9eea..9f19c43 100644 --- a/Examples/Globals/globals.cpp +++ b/Examples/Globals/globals.cpp @@ -38,6 +38,9 @@ Php::Value process_globals() // add a member to an array Php::globals["c"]["member"] = 123; + // and increment it + Php::globals["c"]["member"] += 77; + // if a global variable holds a function, we can call it return Php::globals["d"](1,2,3); } -- cgit v1.2.3