Multiply Function Results in PHP

前端 未结 3 959
渐次进展
渐次进展 2021-01-25 16:00

I\'m still beginner in PHP. I have a small problem, I would to multiply the value get_formatted_order_total(); with 3.75 and what I did is

get_form         


        
3条回答
  •  天命终不由人
    2021-01-25 16:30

    Semi-colons go at the end of an instruction. Since this is all one instruction, you need to move the semi-colon to the end of the line:

    echo get_formatted_order_total() * 3.75;
    

    Example: http://codepad.org/HH3RLZCR

提交回复
热议问题