Recently updated to PHP 7.1 and start getting following error
Warning: A non-numeric value encountered in on line 29
Here is wha
If non-numeric value encountered in your code try below one. The below code is converted to float.
$PlannedAmount = ''; // empty string '' if(!is_numeric($PlannedAmount)) { $PlannedAmount = floatval($PlannedAmount); } echo $PlannedAmount; //output = 0