Jump to content

Php Division


Recommended Posts

??? Thats not division that subtraction, are you echoing out the result? as that should work $number1 = 5;$number2 =2; $number1 = ($number1) - ($number2); echo $number1; Edit: but you may want to use another variable for the end result, as you may which to use the original $number1 value again. $number1 = 5;$number2 =2; $result = ($number1) - ($number2); echo $result;

Edited by dsonesuk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...