diff options
Diffstat (limited to 'documentation/parameters.html')
-rw-r--r-- | documentation/parameters.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/documentation/parameters.html b/documentation/parameters.html index 464d855..e2bc7e6 100644 --- a/documentation/parameters.html +++ b/documentation/parameters.html @@ -13,8 +13,7 @@ the parameters is: </p> <p> -<pre class="language-c++"><code> -#include <phpcpp.h> +<pre class="language-c++"><code>#include <phpcpp.h> extern void example(Php::Parameters &params); @@ -28,8 +27,7 @@ extern "C" { }); return myExtension.module(); } -} -</pre></code> +}</pre></code> </p> <p> Above you see that we passed in additional information when we registered the @@ -41,6 +39,7 @@ extern "C" { will be filled with three members, and that two of them are objects of the appropriate type, and that the third one is also passed by reference. </p> + <h2>Working with variables</h2> <p> Variables in PHP are non-typed. A variable can thus hold any possible type: @@ -55,4 +54,4 @@ extern "C" { "Value" class that makes this a very simple task. </p> <p> -
\ No newline at end of file + |