Source

euler / php / 01-sum-numbers.php

Full commit
#!/usr/bin/env php
<?php

$sum = 0;
for ($i = 0; $i < 1000; $i++)
{
	if ($i % 3 == 0 || $i % 5 == 0)
	{
		$sum += $i;
	}
}

echo $sum . "\n";