From 2eb4e891d9b2d3c71a2b1d7367d85b22f4ecc9cf Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 4 Apr 2014 08:36:43 +0200 Subject: fixed typos in documentation, added ini_get() function to call.h --- documentation/variables.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'documentation') diff --git a/documentation/variables.html b/documentation/variables.html index d577699..719d95e 100644 --- a/documentation/variables.html +++ b/documentation/variables.html @@ -274,7 +274,7 @@ Php::Value filled({ "a", "b", "c", "d"}); // you can cast an array to a vector, template parameter can be // any type that a Value object is compatible with (string, int, etc) -std::vector fruit = array; +std::vector<std::string> fruit = array; // create an associative array Php::Value assoc; @@ -297,7 +297,7 @@ assoc2["z"][1] = "b"; assoc2["z"][2] = "c"; // assoc arrays can be cast to a map, indexed by string -std::map map = assoc2; +std::map<std::string,std::string> map = assoc2;

@@ -381,7 +381,7 @@ Php::out << value.call("format", "Y-m-d H:i:s") << std::endl; void myFunction(const Php::Value &value) { // assum the value variable holds an array or object, it then - // is possible to iterator over the values or properties + // is possible to iterate over the values or properties for (auto &iter : value) { // output key and value -- cgit v1.2.3