Changes

Jump to: navigation, search

PHP Operators

691 bytes added, 19:21, 29 May 2007
Assignment Operators
== Assignment Operators ==
 
The ''assignment operator'' is used to assign a value to a variable and is represented by the equals (=) sign. The assignment operator can be combined with arithmetic operators to combine an assignment with a mathemtatical operation (for example to multiple one value by another and assigning the result to the variable.
 
The following table lists the seven assigmnet operators available in PHP, togetehr with descriptions and examples of their use:
 
<table border="1" cellspacing="0">
<tr style="background:#efefef;">
<th>Operator<th>Type<th>Description<th>Example</th>
<td>=<td>Assignment<td>Sets the value of the left hand operand to the value of the right<td> $myVar = 30;<td>
</table>

Navigation menu