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
, it always falls in echo "ok"
. Now if I do not define one of the variables, it falls in echo "não"
:
$x = 1;
// $y = 1;
if($x =& $y){
echo "ok";
}else{
echo "não";
}
What does this =&
operator check between the two operands?