Hallo,
if($x == 5 || $x == 10 || $x == 15 || $x == 20 || $x == 25 || x == 30) ....
$x soll also die ganze 5er-Reihe durchgehen.
Willst Du "Falls $x durch 5 ohne Rest teilbar ist..." ?
=> Modulo
http://www.php.net/manual/de/language.operators.arithmetic.php
if ($x % 5 == 0)
{ }
Wenn Du nur positive Zahlen willst:
if (($x % 5 == 0) AND ($x>0))
{ }
Gruesse,
Thomas