summaryrefslogtreecommitdiff
path: root/documentation/functions.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-05 14:39:57 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-05 14:39:57 +0100
commitc9efe3bb8605627d7c574153da27d64acf3558e8 (patch)
tree2ab0b10afe77d06d3f130990f5ac9d5788ad1c9f /documentation/functions.html
parent6760069796d527f158c17dde00edf16aaeeee366 (diff)
updated functions documentation
Diffstat (limited to 'documentation/functions.html')
-rw-r--r--documentation/functions.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/documentation/functions.html b/documentation/functions.html
index 3635916..88bcfde 100644
--- a/documentation/functions.html
+++ b/documentation/functions.html
@@ -25,8 +25,8 @@ Php::Value example4(Php::Parameters &amp;params);
</p>
<p>
To make a function callable from PHP, you must <i>add</i> the function
- to your extension object, and assign a name to it. This will also be the
- name by which the function becomes usable in PHP scripts.
+ to your extension object, and assign a name to it. This is the
+ name by which the function becomes callable from within PHP scripts.
</p>
<p>
<pre class="language-c++"><code>
@@ -49,7 +49,10 @@ extern "C" {
</p>
<p>
It is not difficult to imagine what the above code does. If you enable
- this extension, you can create PHP scripts in which you can cell myFunction().
+ this extension, you can create PHP scripts in which you can cell myFunction(),
+ which will print "example output" to stdout.
+</p>
+<p>
As we've said before, there are four types of functions that can be used. In
this first example we showed the most simple one: a function that does not
take any parameter, and that does also not return anything. What if you