diff options
Diffstat (limited to 'Examples/Globals')
-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); } |