Warning: A non-numeric value encountered

后端 未结 18 1824
抹茶落季
抹茶落季 2020-11-22 06:15

Recently updated to PHP 7.1 and start getting following error

Warning: A non-numeric value encountered in on line 29

Here is wha

18条回答
  •  余生分开走
    2020-11-22 06:22

    $sub_total_price = 0; 
    
    foreach($booking_list as $key=>$value) {
            $sub_total_price += ($price * $quantity); 
    }
    
    echo $sub_total_price;
    

    it's working 100% :)

提交回复
热议问题