求个位运算有关问题

WBOY
Release: 2016-06-13 12:55:40
Original
789 people have browsed it

求个位运算问题
//debug(8 & 15);//8
$a = $this->list;//8
$b = $right[$modular[$i]['m_id']];//15
echo $a;//8
echo "
";
echo $b;//15
debug($a & $b);//0

debug()函数就是输出结果

问题是 为什么 用变量代替 8和15 的时候 &运算变成0了


------解决方案--------------------
debug( ($a & $b));

试试这个结果。
------解决方案--------------------
debug 是什么函数?自定义的?
------解决方案--------------------
$a = $this->list;//8
$b = $right[$modular[$i]['m_id']];//15

这两个真的一个是8一个是15么?
debug我没有,echo后,结果是8.
------解决方案--------------------
是否能回复啊,新人。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template