adeelahmad Posted June 6, 2007 Share Posted June 6, 2007 hello where $m is from 1 -> n(unknow number) i don't want to parse SPACER when $m is 5,10,15,20,25.... this is my current code please have a look if(fmod($m,5) != 0) { $view_cat->assign("SPACER",$spacer.fmod($m,5)); } Quote Link to comment https://forums.phpfreaks.com/topic/54404-if-condition-problem/ Share on other sites More sharing options...
leap500 Posted June 6, 2007 Share Posted June 6, 2007 Hi I think that this may work for you: if($m%5 != 0){ //code } Quote Link to comment https://forums.phpfreaks.com/topic/54404-if-condition-problem/#findComment-269555 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.