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)); 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. 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 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
Archived
This topic is now archived and is closed to further replies.