How do I assign a unique static string for each item generated in a for loop?
<p>How do I assign unique static strings to a variable in a for loop? I'm trying assign a unique description and alt tag to a list of thumbnails.  I have managed to get the loop to produce the thumbnails but I cannot work out how to assign unique values to each one based on the condition of the value.  This is the for loop:</p>

<pre><code>    &lt;?php


    for ( $project=1; $project&lt;=40; $project++  ) {                        

        echo "

          &lt;a href=\"#\" class=\"thumb\"&gt;
            &lt;img src=\"images/thumbs/$project.jpg\" width=\"300\" height=\"140\" alt=\"$projectname\" title=\"$projectname\" /&gt;
            &lt;span class=\"client\"&gt;$projectname&lt;/span&gt;&lt;span class=\"description\"&gt;$type&lt;/span&gt;
          &lt;/a&gt;

        ";
    }


?&gt;
</code></pre>

<p>I tried this before the for loop but didn't work...</p>

<pre><code>    if ( $project = 1 ) {
            $projectname = "client1";
            $type = "Interactive Brochure Design";
    }

    else if ( $project = 2 ) {
            $projectname = "client2";
            $type = "Site Design";
    }
</code></pre>
