Wednesday, 7 March 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

casting - Why wasn&#39;t Tobey Maguire in The Amazing Spider-Man? - Movies &amp; TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...