PHP中的奇怪打印行为?
发布时间:2020-12-13 18:29:01 所属栏目:PHP教程 来源:网络整理
导读:参见英文答案 Reference — What does this symbol mean in PHP?17个 为什么以下代码输出128? ?php print 4 5; ? 因为它是 bitwise operator.我认为这意味着4乘以2 ^ 5,因为该运算符意味着 Shift the bits of $a $b steps to the left (each step means “m
参见英文答案 >
Reference — What does this symbol mean in PHP?17个
为什么以下代码输出128? <?php print 4 << 5; ?>
因为它是
bitwise operator.我认为这意味着4乘以2 ^ 5,因为该运算符意味着
所以这是五个步骤.这是4 * 2 * 2 * 2 * 2 * 2(但我在这里猜测;一切都发生在比特级别). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |