好的,在阅读完PHP文档后,现在很清楚这些按位运算符,但是,这是什么?
#dump1
var_dump('two identical strings' | 'two identical strings'); // mind the |
// string(21) "two identical strings"
#dump2
var_dump('two identical strings' ^ 'two identical strings'); // mind the ^
// string(21) ""
Run Code Online (Sandbox Code Playgroud)
为什么#dump2显示长度== 21,但是0个字符?
在Notepad ++中复制时,字符串中没有字符的迹象,那么,为什么呢strlen > 0? - 这让我感到困惑,因为Notepad ++可以显示某种位级别(至少我认为那些是位级别的,如果我错了就纠正我的话),见图:

这实际上是由于:
$string = 'i want you to compare me with an even longer string, that contains even more data and some HTML characters, like € ' ^ 'And I am going …Run Code Online (Sandbox Code Playgroud)