$i = 0;

foreach ($array as $item)
{
   if ($i % 4 < 3) // ilk 3
      echo '';
   else // sıradaki sonuncu
      echo '';
}
PHP'yle çözüm bu ancak ben de bayGarez'in dediği gibi CSS'le yapmanızı öneririm. IE6 zorunluluğunuz yoksa tabi.