Wednesday, March 7, 2018

bit manipulation - php synatax $b = (6

I am not clearly understand about the following code snippets.



$a = (5 << 0);
$b = (6 << 1);
echo $a|$b;



From php.net i knew that << operator use for shift left but not clear how it works and what is the uses of | operator.
Any explanation is highly appreciated.
Thank you

No comments:

Post a Comment

plot explanation - Why did Peaches&#39; mom hang on the tree? - Movies &amp; TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...