check for multiple of 3 in php code example Example: variable is multiple of 3 if (j % 3 == 0) { // j is an exact multiple of 4 }