Upload
mozammel-haque
View
125
Download
0
Embed Size (px)
Citation preview
PHP 101 - 03LivingOnCodes
Expressions
y = 3(abs(2x) + 4 !
$y = 3 * (abs(2 * $x) +4);
True/False
Operators
* Unary operators, example: $a++, -$a * Binary operators, $a+$b * Ternary operator, ? x : y
Operator Precedence
Relational OperatorsEquality
== !
Comparison > <
>= <= !
Logical AND, OR, XOR, NOT
if / else / elseif
Write a program that will just prompt if you are a teenager, or approaching middle age
Switch Statement
Now, can you develop a guessing game?
What’s missing?