summaryrefslogtreecommitdiff
path: root/documentation/variables.html
blob: f46712d774f0133d08e38e240b85ea2d231097cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<h1>Working with variables</h1>
<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 
    Php::Value class that makes this a very simple task.
</p>
<h2>Scalar variables</h2>
<p>
    This section is not finished yet
</p>



<h2>Arrays</h2>
<p>
    This section is not finished yet
</p>



<h2>Objects</h2>
<p>
    This section is not finished yet
</p>



<h2>Functions</h2>
<p>
    This section is not finished yet
</p>