User Tools

Site Tools


php_variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
php_variables [2024/10/06 05:13] appledogphp_variables [2024/10/06 05:16] (current) appledog
Line 19: Line 19:
 ?> ?>
 </Code> </Code>
 +
 +== Operations
 +We can add variables together.
 +
 +<Code:PHP>
 +<?php
 +
 + $a = readLine("a = ");
 + $b = readLine("b = ");
 +
 + echo $a . " + " . $b . " = " . $a+$b . "\n";
 +
 +?>
 +</Code>
 +
  
 == 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.
  
 <Code:PHP> <Code:PHP>
php_variables.1728191633.txt.gz · Last modified: 2024/10/06 05:13 by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki