- fmod: documentation ( source)
<?php
class booHoo{
public function __construct($stupidNumber, $anotherStupidNumber) {
$this->stupidNumber = $stupidNumber;
$this->anotherStupidNumber = $anotherStupidNumber;
}
public function magic() {
$suchFraction = fmod($this->stupidNumber, $this->anotherStupidNumber);
if($suchFraction > 0) {
echo 'such Float, much fraction. Wow';
} else {
echo 'such Integer, much clean. Wow';
}
}
}
$greeter = new booHoo($count, $multiple);
$greeter->magic();