summaryrefslogtreecommitdiff
path: root/documentation/functions.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 08:58:00 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-06 08:58:00 +0100
commit101378b3f5723ef9efc9ce93666faa310b2295f9 (patch)
treedb5ff6971a22247331dea3be0cc137082a9851e3 /documentation/functions.html
parent9e6fbc09ff291cefc94f49dfc53bc1ca8b8ecf33 (diff)
changes to documentation
Diffstat (limited to 'documentation/functions.html')
-rw-r--r--documentation/functions.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/documentation/functions.html b/documentation/functions.html
index 60b1d67..d0f0bbf 100644
--- a/documentation/functions.html
+++ b/documentation/functions.html
@@ -113,11 +113,11 @@ string
</p>
<p>
We've mentioned that there are four types of native functions that can be
- added to the extension object. We've showed you two examples of function
- that both did not accept any parameters. Let's round up with the most
+ added to the extension object. We've showed you two example functions
+ that did not accept any parameters. Let's round up with the most
complicated function: one that accepts parameters and also returns a result.
- The following example function that takes a variable number of parameters,
- and sums up the integer value of each of the parameters:
+ The following example function takes a variable number of parameters,
+ and returns the sum of all its parameters:
</p>
<pre class="language-c++"><code>#include &lt;phpcpp.h&gt;
@@ -143,8 +143,8 @@ extern "C" {
stored in the parameters vector (it are Php::Value objects, of course).
</p>
<p>
- And in this example you can again see how powerful the Php::Value class is. It can
- for example be used on the right hand side of a += operator to be added to
+ And in this example you can again see how powerful the Php::Value class is.
+ It can be used on the right hand side of a += operator to be added to
an integer value, and the final integer result variable is automatically
converted back into a Php::Value object when the function returns - just as if
you are working with regular PHP $variables. But remember, this is C++ code and