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