diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-21 10:50:58 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-21 10:50:58 +0100 |
commit | f26214be1cfd3702fbe6463735ed533b125c7929 (patch) | |
tree | d4321156fe7e627f299c3641122d727e3ebd7d3d /documentation | |
parent | b074c235b2c6df83b0954d22c0a7a04376d8a2d8 (diff) |
documentation update
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/variables.html | 6 |
1 files 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) </code></pre> </p> <p> - 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. </p> <p> - 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. </p> @@ -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 ++ <i>prefix</i> 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! </p> <h2 id="functions">Functions</h2> <p> |