Skip to content

Instantly share code, notes, and snippets.

@flaviors200
Created May 23, 2019 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviors200/1aab11f2341eb35456614ad1b9e85c54 to your computer and use it in GitHub Desktop.
Save flaviors200/1aab11f2341eb35456614ad1b9e85c54 to your computer and use it in GitHub Desktop.
Arithmetic Operators
<?php
$x = 9;
$y = 2;
echo $x + $y; // 0utput: 11
echo $x - $y; // 0utput: 7
echo $x * $y; // 0utput: 18
echo $x / $y; // 0utput: 4.5
echo $x % $y; // 0utput: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment