php_variables
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| php_variables [2024/10/06 05:13] – appledog | php_variables [2024/10/06 05:16] (current) – appledog | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| ?> | ?> | ||
| </ | </ | ||
| + | |||
| + | == Operations | ||
| + | We can add variables together. | ||
| + | |||
| + | < | ||
| + | <?php | ||
| + | |||
| + | $a = readLine(" | ||
| + | $b = readLine(" | ||
| + | |||
| + | echo $a . " + " . $b . " = " . $a+$b . " | ||
| + | |||
| + | ?> | ||
| + | </ | ||
| + | |||
| == Testing variables with IF | == Testing variables with IF | ||
| Line 44: | Line 59: | ||
| == Integers | == Integers | ||
| - | We can also store numbers. | + | We can also store numbers and do operations on those numbers. |
| < | < | ||
php_variables.1728191633.txt.gz · Last modified: 2024/10/06 05:13 by appledog
