summaryrefslogtreecommitdiff
path: root/documentation/variables.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-05 17:11:24 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-05 17:11:24 +0100
commitf9717a68bd29ca20234fd1c53f226964a5cdd7a6 (patch)
treef25d7c07c3f9c7dfa21acb78c068fedd94781b37 /documentation/variables.html
parenta9862c7de793b7aa679a64b41de443e01245b831 (diff)
ByVal and ByRef variable now have nullable set to false by default (which is also the default in PHP), updates to documentation
Diffstat (limited to 'documentation/variables.html')
-rw-r--r--documentation/variables.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/documentation/variables.html b/documentation/variables.html
new file mode 100644
index 0000000..31dded6
--- /dev/null
+++ b/documentation/variables.html
@@ -0,0 +1,13 @@
+<h2>Working with variables</h2>
+<p>
+ Variables in PHP are non-typed. A variable can thus hold any possible type:
+ an integer, string, a floating point number, and even an object or an array.
+ C++ on the other hand is a typed language. In C++ an integer variable always
+ has a numeric value, and a string variable always hold a string value.
+</p>
+<p>
+ When you mix native code and PHP code, you will need to convert the non-typed
+ PHP variables into native variables, and the other way round: convert native
+ variables back into non-typed PHP variables. The PHP-CPP library offers the
+ "Value" class that makes this a very simple task.
+</p>