php using for to loop words without any space between them : <p>How can I achieve making words loops without any space between them using <em>for</em></p>

<p>Here is my code: </p>

<pre><code>function a($var) {
    for ($i = 0; $i &lt; ; $i++)
    {
        echo "a";
    }
}

a(3);
</code></pre>

<p>I want it to make loops like: </p>

<pre><code>a(3);

output: aaa
</code></pre>

<p>but I get an error saying </p>

<pre><code>syntax error, unexpected ';'
</code></pre>
