Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 14700

[Resolvido] shift operand php

$
0
0
Boas

Estou com dúvidas acerca do funcionamento dos shift operand em php

Segundo o php.net:
$a << $b Shift left Shift the bits of $a $b steps to the left (each step means "multiply by two") $a >> $b Shift right
Shift the bits of $a $b steps to the right (each step means "divide by two")

mas a verdade é que continuo sem perceber muito bem o seu funcionamento

Desde já agradeço

Viewing all articles
Browse latest Browse all 14700