scottybwoy Posted February 12, 2008 Share Posted February 12, 2008 How would I write If (is a multiple of n) Could you explain how it works too, thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/90718-quick-easy-math-condition-for-meathod/ Share on other sites More sharing options...
sasa Posted February 12, 2008 Share Posted February 12, 2008 if(($a % $n) == 0) means $a modulo $n = 0 Quote Link to comment https://forums.phpfreaks.com/topic/90718-quick-easy-math-condition-for-meathod/#findComment-465017 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.