22 Jan 2007 at 18:05 #1 Trigger Trigger Soldato Joined 15 Dec 2004 Posts 3,819 Hi, Is there a way of doing a sort of 'is mutliple of' command in PHP. For example: if $number is a multiple of 3, do something, if not, do something else. Sorry for being a bit vague Thanks Ben
Hi, Is there a way of doing a sort of 'is mutliple of' command in PHP. For example: if $number is a multiple of 3, do something, if not, do something else. Sorry for being a bit vague Thanks Ben
22 Jan 2007 at 18:29 #3 Trigger Trigger Soldato OP Joined 15 Dec 2004 Posts 3,819 Cool, thanks Will What does the '== 0' bit do? Can't find anything on it in the PHP manual- sorry