summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-12-07 14:47:34 -0800
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-12-07 14:47:34 -0800
commiteea207153c62201cd1a0f2d5e4caf260919f5e9b (patch)
tree01285dbb58e350e813444de3f97b2aa21752fbfd /Examples
parent80c8a16fb145f7ed4867d31fad3c22318a1ce708 (diff)
Implemented operator overloading for hash members
Diffstat (limited to 'Examples')
-rw-r--r--Examples/Globals/globals.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}