+$a

Positive Number Conversion

When using the + operator in front of a variable, that variable will be cast to a number.

Tags
$a = '1';
$a = +$a; // 1

$b = '1.2';
$b = +$b; // 1.2

 1.0+

null coalescing