yep. why not? https://www.php.net/manual/en/control-structures.for.php but when you are want all values betwen -1 and -2 you have to change <= to >=... PHP: for($i = -1; $i >= -2; $i -= 0.2) {}