From f26214be1cfd3702fbe6463735ed533b125c7929 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 21 Mar 2014 10:50:58 +0100 Subject: documentation update --- documentation/variables.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/variables.html b/documentation/variables.html index d1e4961..8c8b328 100644 --- a/documentation/variables.html +++ b/documentation/variables.html @@ -391,13 +391,13 @@ void myFunction(const Php::Value &value)

- The iterated value is a std::pair<Php::Value::Php::Value>. You can + The iterated value is a std::pair<Php::Value::Php::Value>. You can access its property 'first' to get the current key, and the property 'second' to get the current value. This is identical to how you would iterate over a std::map.

- You can iterate over Php::Value objects that hold either an object + You can iterate over all Php::Value objects that hold either an object or an array. When you iterate over an array, the iterator simply iterates over all records in the array.

@@ -426,7 +426,7 @@ void myFunction(const Php::Value &value) new iterator that is back at the front position of the object. But remember that in C++ and PHP (and in many other programming languages) it is much wiser to use the ++ prefix operator, as this does not require making a copy of - the original object. + the original object, so you should not use the ++ postfix operator anyway!

Functions

-- cgit v1.2.3