cloudll Posted October 1, 2011 Share Posted October 1, 2011 Hey guys, Say I have two variables, the first being $level_1 = '100'; and $level_2 = '1000'; is there anyway to work out the difference between the two and output it? Link to comment https://forums.phpfreaks.com/topic/248211-finding-the-difference-between-two-variables/ Share on other sites More sharing options...
Drummin Posted October 1, 2011 Share Posted October 1, 2011 Simple math. $result=$level_2-$level_1; Link to comment https://forums.phpfreaks.com/topic/248211-finding-the-difference-between-two-variables/#findComment-1274566 Share on other sites More sharing options...
cloudll Posted October 1, 2011 Author Share Posted October 1, 2011 oh that is simple, thanks Link to comment https://forums.phpfreaks.com/topic/248211-finding-the-difference-between-two-variables/#findComment-1274576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.