I have a function in JavaScript:
function myFunc(a, b, c)
{
return (a ^ (b | (~c)));
}
And Equivalent in PHP:
function myFunc($a, $b, $c)
{
return ($a ^ ($b | (~$c)));
}
The result for them are not the same:
myFunc('123', '4434', '355'); // PHP = ��� (Unknown Characters)
myFunc('123', '4434', '355'); // JavaScript = -91
What is wrong here?