You are on page 1of 6

Lecture 1.

0
By Mazen Abdulaziz

1.1 Variables
$a = 1; // a is an int
$a = 1.2; // now its a double
$a = straw; // its a string now

echo $a;
1.1 Variables
$a = 1;
$b = 1.2;
$c = 1st;

$v = $a + $b; // $v is double
$q = 1 + $c;

echo $v . . $c;
1.3 Operators
Binary: + - * / % .
Assignment: += -= *= /= %= .= ++ --
Comparison: == > < >= <= != <>
Logical: && || or and xor !
Ternary: ( expr ? expr : expr )
Bitwise: & | ^ ! >> <<
Next
- Loops
- Functions
- Arrays

Sayonara!