Jump to content

left shift operator


allworknoplay

Recommended Posts

lol you just need to echo $i bro and you will find out hehe

 

echo 16 << 4;

 

hahaha, I should have tried that, yes it is 256....I just want to make sure I get my facts straight, I'm

basically saying, 16 to the power of 2, four times?

 

16 * 2 = 32

32 * 2 = 64

64 * 2 = 128

128 * 2 = 256

 

 

Link to comment
https://forums.phpfreaks.com/topic/145457-left-shift-operator/#findComment-763616
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.