Fizz Buzz Test

#codeifyoucansolve
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”. Print a new line after each string or number.

<?php
for($val=1;$val<=100;$val++)
{
 if($val%15 === 0)
       print("FizzBuzz\n");
 else if($val%3 === 0)
     print("Fizz\n");
 else if($val%5 === 0)
     print("Buzz\n");
 else
    print($val."\n");
    
}

?>