Last active
August 29, 2015 14:04
-
-
Save maykonmeier/46f0e27cfe7bf457230b to your computer and use it in GitHub Desktop.
Operadores aritméticos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Soma | |
$a = 1 + 2; | |
$total = $a - 1; | |
// Total is 2 | |
// Negacão | |
$b = -$a; | |
// Multiplicação | |
$c = $a * 2; | |
// Módulo e divisão | |
$d = $c % ($a / 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment