What are the possible odds of this value not entering the condition?
$a = 106709.71; //value in first table
$b = 106709.71; //value in second table
They're both Decimal in table.
I have the following code:
$a != $b ? '' : 'disabled';
It always returns the disabled one.
I have tried replicating it on PHP Emulator, but it worked even the other one is declared as string '106709.71' == 106709.71. It returns true.
I tried displaying the data on the front end and it's the same, they're both 106709.71.
My assumption is that the other one is displayed without a comma but the comma is there.
I trim the comma on both values using rtrim($var) and it works.
Any thoughts on why this is happening? Is it possible that it's displayed in the front and back end without comma but in reality there's a comma?