+$a Positive Number Conversion When using the + operator in front of a variable, that variable will be cast to a number. Tags +$a convert Related $a + $b -$a $a = '1'; $a = +$a; // 1 $b = '1.2'; $b = +$b; // 1.2 1.0+