<?php
error_reporting(0);
$i = 0;
while($i++ < 100)
{
if($i % 3 != 0)
{
echo !$$i = $i; // or just $$i = $i; (without the echo), but I kept it as it was in the original code)
}
else
{
echo 'Fizz';
}
if($i % 5 != 0)
{
echo $$i; // echo the counter
}
else
{
echo 'Buzz';
}
echo "\n";
}
?>