I'm getting a value from a form that looks like this:
1222,22 (no dot in the thousand, only with
,
in decimal)
So I'm creating a condition, like this:
if ($var1 < 1111,11) {
$var2 = 1;
}
elseif ($var1 > 1111,11 && $var1 < 9999,99) {
$var2 = 2;
}
else {
$var2 = 3;
But it does not work, it seems that ,
is not accepted there in the condition ... I also tried as a string (putting the numbers in quotation marks), and so already accepted, but also not resolved.