Skip to content

Instantly share code, notes, and snippets.

@geekcom
Created April 20, 2017 20:18
Show Gist options
  • Save geekcom/6b9ac4a5e07f5fe3f9849568b5c84d59 to your computer and use it in GitHub Desktop.
Save geekcom/6b9ac4a5e07f5fe3f9849568b5c84d59 to your computer and use it in GitHub Desktop.
php7_dia3
<?php
$a = 3 * 3 % 5; // (3 * 3) % 5 = 4
$a = 2 - 2 * 6 + 4; // 2 - (2 * 6) + 4 = 2 - 12 + 4 = -10 + 4 = -6
$a = 1;
$b = 2;
$a = $b += 3; // $a = ($b += 3) -> $a = 5, $b = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment