diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-05 14:37:30 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-05 14:37:30 +0100 |
commit | 6760069796d527f158c17dde00edf16aaeeee366 (patch) | |
tree | 3946670e6605607b5c9ebd3de79be904e547a500 /documentation/functions.html | |
parent | 432cf5a03158a9db9b19460bb0e16a1347258cee (diff) |
updated functions documentation
Diffstat (limited to 'documentation/functions.html')
-rw-r--r-- | documentation/functions.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/documentation/functions.html b/documentation/functions.html index 8b0aca4..3635916 100644 --- a/documentation/functions.html +++ b/documentation/functions.html @@ -1,9 +1,9 @@ <h1>Exporting native functions</h1> <p> - An extension can of course only be useful if you define functions and/or - classes that can be accessed from PHP scripts. For functions this is + An extension can of course only be useful if you can make functions and/or + classes that can be called from PHP scripts. For functions this is astonishingly simple. As long as you have a native C++ function that has - one of the following signatures, it can almost directly be called from PHP: + one of the following signatures, you can call it almost directly from PHP: </p> <p> <pre class="language-c++"><code> @@ -14,7 +14,7 @@ Php::Value example4(Php::Parameters &params); </code></pre> </p> <p> - These function signatures also show you two important PHP-CPP classes, the + These function signatures show you two important PHP-CPP classes, the Php::Value class and the Php::Parameters class. The Php::Value class is a powerful class that does the same as a regular PHP $variable: it can hold almost any variable (integers, floating pointer numbers, strings, but also @@ -35,7 +35,7 @@ Php::Value example4(Php::Parameters &params); void myFunction() { - std::cout << "example output" << std::endl; + std::cout << "example output" << std::endl; } extern "C" { |