diff options
Diffstat (limited to 'Examples/Globals/globals.cpp')
-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 9f19c43..2370a8a 100644 --- a/Examples/Globals/globals.cpp +++ b/Examples/Globals/globals.cpp @@ -41,6 +41,9 @@ Php::Value process_globals() // and increment it Php::globals["c"]["member"] += 77; + // change value e + Php::globals["e"] = Php::globals["e"][0]("hello"); + // if a global variable holds a function, we can call it return Php::globals["d"](1,2,3); } |