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:
Simon Schindlatz
2018-12-11 00:22:24 +01:00
committed by Manish Giri
parent 33fe89eb57
commit d5adba3e23

View File

@ -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>