is it possible that for ever 5 items create a new <ul /><li /> in a new column?
<p>I have a list of 50 items, and it gets kinda long. Is it possible to split that into 10 columns?</p>

<p>maybe in a table with 5 li's per td? and if it exceeds more than 10 td create a tr with another set of td?</p>

<p>well I'm sorry, this is my current script setup and its confusing me a little as to how to add the little condition.</p>

<pre><code>if(isset($_POST['submit-script']))
{
    $path  = "./projects/scripts";
    $handle = new upload($_FILES['script']);
    if ($handle-&gt;uploaded)
    {
        $handle-&gt;file_overwrite = true;
        $handle-&gt;process($path);
        if ($handle-&gt;processed)
        {
            $handle-&gt;clean();
            $msg = "[ Your Script ".$handle-&gt;file_dst_name_body." has been uploaded ]";
            $file = $handle-&gt;file_dst_path.$handle-&gt;file_dst_name_body.'.'.$handle-&gt;file_dst_name_ext;
            $open = fopen($file, 'r+');
            $story = fread($open, filesize($file));
            $_ = NULL;
            if (preg_match_all('/\s{35}(.*)/m', $story, $_))
            {
                $counter = 0;
                $unique_characters = array_unique(array_map(create_function('$a', 'return ucfirst(strtolower(trim($a)));'), $_[1]));
                echo "&lt;p&gt;It looks like you have ".count($unique_characters)." characters in your script&lt;/p&gt;\r\n";
                echo "\r\n";
                array_map(
                    create_function(
                        '$a',
                        'echo "&lt;ul style=/"float:left;/"&gt;;
                        foreach($a as $item)
                        {
                            $counter++;
                            echo "&lt;li&gt;$item&lt;/li&gt;";
                            if(is_int($counter/5) &amp;&amp; count($unique_characters) &gt;= $counter)
                            {
                                echo "&lt;/ul&gt;\r\n";
                            }
                        '
                    ),
                $unique_characters);
            }

        }else{
            $msg = "&lt;div class='error'&gt;[ error : " . $handle-&gt;error .  ]&lt;/div&gt;";
        }
    }
}
</code></pre>

<p>excerpt of <code>$story</code>:</p>

<pre><code>EXT. DUNKIN' DONUTS - DAY 

               Police vehicles remain in the parking lot.  The determined
               female reporter from the courthouse steps, MELINDA FUENTES
               (32), interviews Comandante Chitt, who holds a napkin to his
               jaw, like he cut himself shaving. 

                                   MELINDA
                         &lt; Comandante Chitt, how does it
                         feel to get shot in the face? &gt;

                                   COMANDANTE CHITT
                         &lt; Not too different than getting
                         shot in the arm or leg. &gt;

                                   MELINDA
                         &lt; Tell us what happened. &gt;

                                   COMANDANTE CHITT
                         &lt; I parked my car.
                             (indicates assault vehicle
                              in donut shop)
                         He aimed his weapon at my head.  I
                         fired seven shots. He stopped
                         aiming his weapon at my head. &gt;

               Melinda waits for more, but Chitt turns and walks away into
               the roped-off crime scene. Melinda is confused for a second,
               then resumes smiling.

                                   MELINDA
                         &lt; And there you have it... A man of
                         few words. &gt;
</code></pre>
