Téma: PHP |
|
R.András |
|
$psize['a'] = 123; $psize['b'] = 234; var_dump( $psize );
|
|
|
|
|
|
|
Rendes Kis |
|
In addition to the basic assignment operator, there are "combined operators" for all of the binary arithmetic, array union and string operators that allow you to use a value in an expression and then set its value to the result of that expression. For example: <?php
$a = 3; $a += 5; // sets $a to 8, as if we had said: $a = $a + 5; $b = "Hello "; $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
?> ... http://www.php.net/manual/en/language.operators.assignment.php |
|
|
|
|