thefollower Posted August 26, 2007 Share Posted August 26, 2007 I sound a bit noobish here but is this how you structure a subtraction of 2 variables to equal a new variable: $FreeRooms = (($TotalRooms) - ($HouseLodgerTotals)); Quote Link to comment https://forums.phpfreaks.com/topic/66752-solved-subtraction-of-2-variables/ Share on other sites More sharing options...
AndyB Posted August 26, 2007 Share Posted August 26, 2007 Yes, but you really don't need the brackets. When in doubt, test first. Quote Link to comment https://forums.phpfreaks.com/topic/66752-solved-subtraction-of-2-variables/#findComment-334508 Share on other sites More sharing options...
thefollower Posted August 26, 2007 Author Share Posted August 26, 2007 i done it without brackets and it doesnt work and now it doesnt work this time either so i thought i had the structure wrong its working now thankyou Quote Link to comment https://forums.phpfreaks.com/topic/66752-solved-subtraction-of-2-variables/#findComment-334512 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.