chocopi Posted May 27, 2007 Share Posted May 27, 2007 How can you minus 2 numerical variables would it be: <?php $var1 = 20; $var2 = 10; $var_ans = $var1 - $var2; echo $var_ans; ?> Cheers, ~ Chocopi Link to comment https://forums.phpfreaks.com/topic/53166-solved-minus-2-numerical-variables/ Share on other sites More sharing options...
AndyB Posted May 27, 2007 Share Posted May 27, 2007 What happens when you test that? Link to comment https://forums.phpfreaks.com/topic/53166-solved-minus-2-numerical-variables/#findComment-262644 Share on other sites More sharing options...
chocopi Posted May 27, 2007 Author Share Posted May 27, 2007 I dont know, im unable to test it at the moment Link to comment https://forums.phpfreaks.com/topic/53166-solved-minus-2-numerical-variables/#findComment-262646 Share on other sites More sharing options...
trq Posted May 27, 2007 Share Posted May 27, 2007 im unable to test it at the moment Then I don't really see the need to know, but if you must, your syntax is correct. There is a manual you know? Link to comment https://forums.phpfreaks.com/topic/53166-solved-minus-2-numerical-variables/#findComment-262648 Share on other sites More sharing options...
chocopi Posted May 27, 2007 Author Share Posted May 27, 2007 no what i meant by that is, i cant acess the bit of code where the minusing occurs because im stuck in a rut with some of my other code. Also, I find the manually is such a chore to go through, and half the stuff means nothing to me as im still a n00b Anyway, thanks, ~ Chocopi Link to comment https://forums.phpfreaks.com/topic/53166-solved-minus-2-numerical-variables/#findComment-262651 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.