PHP Tutorials
Php What isPHP INI Tutorials
Php ini What isThe assignment operators assign a data value to a variable. The simplest form of assignment operator just assigns some value, while others (known as shortcut assignment operators) perform some other operation before making the assignment.
Example | Label | Outcome |
$a = 5 | Assignment | $a equals 5 |
$a += 5 | Addition-assignment | $a equals $a plus 5 |
$a *= 5 | Multiplication-assignment | $a equals $a multiplied by 5 |
$a /= 5 | Division-assignment | $a equals $a divided by 5 |
$a .= 5 | Concatenation-assignment | $a equals $a concatenated with 5 |
|
Tweet |
|
|