Added section for assignment operators. (#24416)
* updated index.md Added new paragraph for assigment operator. Edited "More Inofrmation" section by adding two links. * Fixed formatting issues and assignment statement
This commit is contained in:
committed by
Manish Giri
parent
33fe89eb57
commit
d5adba3e23
@ -62,11 +62,23 @@ title: PHP Operators
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### PHP Assignment Operators
|
||||
|
||||
The assignment operator is `=`. The operand on the left side gets assigned the value of the expression on the right.
|
||||
|
||||
#### Example
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
||||
$a = 7; // $a set to 7.
|
||||
|
||||
?>
|
||||
```
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
|
||||
#### More Information:
|
||||
<!-- Please add any articles you think might be helpful to read before writing the article -->
|
||||
|
||||
- <a href='http://php.net/manual/en/language.operators.arithmetic.php' target='_blank' rel='nofollow'>Arithmetic Operators</a></li>
|
||||
- <a href='http://php.net/manual/en/language.operators.assignment.php' target='_blank' rel='nofollow'>Assignment Operators</a></li>
|
||||
|
||||
|
Reference in New Issue
Block a user