Using variables - 2
The echo function can be used to print text, variables or constants:
- echo $var; echo “Hello world”;
Simple math operators: + - / * %
- $total = $cost + $cost * $taxpercentage;
- Normal precedence rules (BODMAS)
String concatenation:
- echo “We are now at the ” . EBI;