diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-29 13:10:08 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-11-29 13:10:08 +0100 |
commit | 6b0901b8d17425b604ba5b30a54b95ae4455957a (patch) | |
tree | 96936ba4dd645c4d6e3c03eeec3fb4ecfb732e84 /Examples | |
parent | e2800f0569a58ffe67cc7464da3192dcd92ff299 (diff) |
README.md update
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/README.md | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Examples/README.md b/Examples/README.md index 3bf6818..20fcd57 100644 --- a/Examples/README.md +++ b/Examples/README.md @@ -25,7 +25,8 @@ Extension FunctionVoid -~~~~~~~~~~~~ +------------ + This second example shows how to add a function to the extension and call that function from the PHP code. Adding a function to @@ -38,9 +39,11 @@ FunctionVoid Functions and/or classes defined in this example. - void my_function_void() Named as my_void_function() - + + FunctionReturnValue -~~~~~~~~~~~~~~~~~~~ +------------------- + The third example shows how to return a value from C++ to PHP. Virtually any type of value can be returned to PHP from C++. @@ -53,11 +56,18 @@ FunctionReturnValue Functions and/or classes defined in this example. - Php::Value my_return_value_function() + FunctionNoParameters -~~~~~~~~~~~~~~~~~~~~ +-------------------- + The fourth example is a combination of the second and third example. This example illustrates how to call a function without parameters. The function is added to your extension, and can then be called from your PHP script. + The function returns a Php::Value to show that the call succeeded. + + Functions and/or classes defined in this example. + - Php::Value my_no_parameters_function() + |