[Solved] How to show plus and minus sign when subtracting two variables: [closed] October 22, 2022 by Kirat [ad_1]Instead of echo, try this:printf('%+d', $gd); Reference: printf() string formatting 2[ad_2]solved How to show plus and minus sign when subtracting two variables: [closed]