diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-12-07 14:47:34 -0800 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-12-07 14:47:34 -0800 |
commit | eea207153c62201cd1a0f2d5e4caf260919f5e9b (patch) | |
tree | 01285dbb58e350e813444de3f97b2aa21752fbfd /Examples | |
parent | 80c8a16fb145f7ed4867d31fad3c22318a1ce708 (diff) |
Implemented operator overloading for hash members
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/Globals/globals.cpp | 3 |
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); } |