Warning: number_format()
Hi I get this error:
+++++++++
PHP Warning: number_format() expects parameter 1 to be double, string given in WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php on line 74
+++++++++
Line 74 is :
else if (strpos($itemArray[0][$x], "Tax") !== false) {
if (array_key_exists("tax",$thisItem)) {
$eachItemArray[] = $thisItem;
$thisItem = array();
}
$thisItem["tax"] = number_format($itemArray[1][$x],2,".","");
}
LINE 74 --> $thisItem["tax"] = number_format($itemArray[1][$x],2,".","");
How can I fix this?