News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1183994794:v:use_geshi-1:v:type-php

Started by SleePy, Jul 09, 2007, 03:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SleePy

<?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 '
';
}

?>
No siggy! :D