summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/calling-functions-and-methods.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/documentation/calling-functions-and-methods.html b/documentation/calling-functions-and-methods.html
index da3b57c..47a3bf9 100644
--- a/documentation/calling-functions-and-methods.html
+++ b/documentation/calling-functions-and-methods.html
@@ -57,7 +57,7 @@ void example_function(Php::Parameters &params)
// in PHP it is possible to create an array with two parameters, the first
// parameter being an object, and the second parameter should be the name
// of the method, we can do that in PHP-CPP too
- Php::Array time_format(time, "format");
+ Php::Array time_format({time, "format"});
// call the method that is stored in the array
std::cout << time_format("Y-m-d H:i:s") << std::endl;
@@ -143,3 +143,16 @@ extern "C" {
});
?&gt;</code></pre>
</p>
+<p>
+ This above script will generate output similar to this:
+<p>
+<pre>
+key: x
+key: y
+key: z
+userspace function called with some_parameter
+2014-03-08 13:55:54
+lambda function called with param some parameter
+2014-03-08 13:55:54
+</pre>
+</p> \ No newline at end of file