SleePyCode Forums

Special Site & Other Boards => PasteBin => Topic started by: SleePy on Jul 09, 2007, 03:26 PM

Title: Paste-1183994794:v:use_geshi-1:v:type-php
Post by: SleePy on Jul 09, 2007, 03:26 PM
<?php

$i = 0;
foreach($context as $junk)
{
   ++$i;

   echo $junk;

   // If you can divide it by 2 evenly its time for a new row.
   if($i % 2 == 0 && $i != 0)
      echo '
';
}

?>