Tutorials – Addition in PHP

Tutorials – Addition in PHP

OK, let’s do some adding up. To add up in PHP, the plus symbol (+) is used. (If you still have the code open from the previous page, try changing the full stop to a plus symbol. Run the code, and see what happens.) To add up the contents of variables, you just...
Tutorials – PHP Concatenation

Tutorials – PHP Concatenation

You can join together direct text, and whatever is in your variable. The full stop (period or dot, to some) is used for this. Suppose you want to print out the following “My variable contains the value of 10”. In PHP, you can do it like this: <?php...