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)); } 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 } Link to comment https://forums.phpfreaks.com/topic/54404-if-condition-problem/#findComment-269555 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.