summaryrefslogtreecommitdiff
path: root/documentation/calling-functions-and-methods.html
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/calling-functions-and-methods.html')
-rw-r--r--documentation/calling-functions-and-methods.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/calling-functions-and-methods.html b/documentation/calling-functions-and-methods.html
index d3bc3e2..00f166a 100644
--- a/documentation/calling-functions-and-methods.html
+++ b/documentation/calling-functions-and-methods.html
@@ -36,7 +36,7 @@ void example_function(Php::Parameters &params)
for (auto &key : keys)
{
// output key
- std::cout << "key: " << key << std::endl;
+ Php::out << "key: " << key << std::endl;
}
// call a function from user space
@@ -46,7 +46,7 @@ void example_function(Php::Parameters &params)
Php::Object time("DateTime", "now");
// call a method on the datetime object
- std::cout << time.call("format", "Y-m-d H:i:s") << std::endl;
+ Php::out << time.call("format", "Y-m-d H:i:s") << std::endl;
// second parameter is a callback function
Php::Value callback = params[1];
@@ -60,7 +60,7 @@ void example_function(Php::Parameters &params)
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;
+ Php::out << time_format("Y-m-d H:i:s") << std::endl;
}
/**