L'esempio non é chiaro, ma se vuoi il mod si fa con %.
Es:

$valore = (100 % 10);