![]() |
|
|
+ Search |
![]()
|
Jun 27th, 1999 17:41
Nathan Wallace, Colin Viebrock, Nathan Wallace
The assignment operator (=) is used to assign a value to a variable.
For example:
$a = 23;
// $a now holds the number 23
The equality operator (==) is used to compare two values for equality.
For example:
if ($a == 23) {
// $a is equal to 23
}
else {
// $a is not equal to 23
}