5
If I have the code below:
$x = 1;
$y = 1;
if($x =& $y){
echo "ok";
}else{
echo "não";
}
No matter what value I put in $x
or $y
, always falls in the echo "ok"
. Now if I don’t define one of the variables, I fall into echo "não"
:
$x = 1;
// $y = 1;
if($x =& $y){
echo "ok";
}else{
echo "não";
}
What that operator =&
checks between the two operands?