Skip to content

Instantly share code, notes, and snippets.

@geekcom
Created April 21, 2017 15:11
Show Gist options
  • Save geekcom/72a3419ee172726cb87a79680fbe6a89 to your computer and use it in GitHub Desktop.
Save geekcom/72a3419ee172726cb87a79680fbe6a89 to your computer and use it in GitHub Desktop.
PHP7_dia3_1
<?php
/*
* estamos dividindo 4 por 2 uma vez
* 4 / 2 == 2
*/
echo 4>>1;
echo "<br>";
/*
* estamos dividindo 4 por 2 duas vez
* 4 / 2 == 2 / 2 == 1
*/
echo 4>>2;
echo "<br>";
/*
* estamos multiplicando 4 por 2 uma vez
* 4 * 2 == 8
*/
echo 4<<1;
echo "<br>";
/*
* estamos multiplicando 4 por 2 duas vezes
* 4 * 2 == 8 * 2 == 16
*/
echo 4 <<2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment